From 3fc6dc95b40d417c8248e2c843b18533bb703ebd Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sat, 13 Dec 2014 09:56:13 -0500 Subject: [PATCH] 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)] ^~~ ``` --- src/libsyntax/ext/deriving/cmp/totalord.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsyntax/ext/deriving/cmp/totalord.rs b/src/libsyntax/ext/deriving/cmp/totalord.rs index 6900773f44d..bb9670c8e81 100644 --- a/src/libsyntax/ext/deriving/cmp/totalord.rs +++ b/src/libsyntax/ext/deriving/cmp/totalord.rs @@ -64,6 +64,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span, let equals_path = cx.path_global(span, vec!(cx.ident_of("std"), cx.ident_of("cmp"), + cx.ident_of("Ordering"), cx.ident_of("Equal"))); let cmp_path = vec![