Skip to content

Commit f0bf34d

Browse files
committed
rollup merge of #19812: frewsxcv/expansion-include-enum
In preparation for [removing the `std::cmp::Ordering` reexport](#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)] ^~~ ```
2 parents e52efe2 + 3fc6dc9 commit f0bf34d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span,
6666
let equals_path = cx.path_global(span,
6767
vec!(cx.ident_of("std"),
6868
cx.ident_of("cmp"),
69+
cx.ident_of("Ordering"),
6970
cx.ident_of("Equal")));
7071

7172
let cmp_path = vec![

0 commit comments

Comments
 (0)