Skip to content

Commit

Permalink
Expansion should explicitly include enum
Browse files Browse the repository at this point in the history
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)]
                                              ^~~
```
  • Loading branch information
frewsxcv committed Dec 13, 2014
1 parent 1eccb54 commit 3fc6dc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsyntax/ext/deriving/cmp/totalord.rs
Expand Up @@ -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![
Expand Down

0 comments on commit 3fc6dc9

Please sign in to comment.