about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2014-12-13 09:56:13 -0500
committerCorey Farwell <coreyf@rwell.org>2014-12-13 09:57:46 -0500
commit3fc6dc95b40d417c8248e2c843b18533bb703ebd (patch)
tree845b181561392413392d742e70b46e7b29fe3241 /src/libsyntax/ext
parent1eccb54bd61c666a38874e6ddaa1f16fa6e3d0fd (diff)
downloadrust-3fc6dc95b40d417c8248e2c843b18533bb703ebd.tar.gz
rust-3fc6dc95b40d417c8248e2c843b18533bb703ebd.zip
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)]
                                              ^~~
```
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/deriving/cmp/totalord.rs1
1 files changed, 1 insertions, 0 deletions
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![