Skip to content

Commit 3fc6dc9

Browse files
committed
Expansion should explicitly include enum
In preparation for removing the std::cmp::Ordering reexport, this needs to be done to prevent errors like: ``` note: in expansion of #[deriving] note: expansion site error: unresolved name `std::cmp::Equal` \#[deriving(Clone, PartialEq, PartialOrd, Eq, Ord, Show)] ^~~ ```
1 parent 1eccb54 commit 3fc6dc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/ext/deriving/cmp/totalord.rs

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span,
6464
let equals_path = cx.path_global(span,
6565
vec!(cx.ident_of("std"),
6666
cx.ident_of("cmp"),
67+
cx.ident_of("Ordering"),
6768
cx.ident_of("Equal")));
6869

6970
let cmp_path = vec![

0 commit comments

Comments
 (0)