about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/cmp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-12-13 18:24:42 -0800
committerBrian Anderson <banderson@mozilla.com>2014-12-15 06:45:36 -0800
commitf0bf34de9fb5cf44cb94021d702a523e8c149005 (patch)
tree59f89e50a6fba877cb295571bf171454d466977a /src/libsyntax/ext/deriving/cmp
parente52efe262d3476bc5f6efe1ae63597484d1da95c (diff)
parent3fc6dc95b40d417c8248e2c843b18533bb703ebd (diff)
downloadrust-f0bf34de9fb5cf44cb94021d702a523e8c149005.tar.gz
rust-f0bf34de9fb5cf44cb94021d702a523e8c149005.zip
rollup merge of #19812: frewsxcv/expansion-include-enum
In preparation for [removing the `std::cmp::Ordering` reexport](https://github.com/rust-lang/rust/issues/19253), 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/deriving/cmp')
-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 a2bf46f41fc..65a4c569b44 100644
--- a/src/libsyntax/ext/deriving/cmp/totalord.rs
+++ b/src/libsyntax/ext/deriving/cmp/totalord.rs
@@ -66,6 +66,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![