libsyntax: (maybe) fix deriving(TotalOrd) on windows
This commit is contained in:
parent
bff3748731
commit
ea9bdaaed9
@ -45,7 +45,7 @@ pub fn ordering_const(cx: @ext_ctxt, span: span, cnst: Ordering) -> @expr {
|
||||
Equal => ~"Equal",
|
||||
Greater => ~"Greater"
|
||||
};
|
||||
build::mk_path(cx, span,
|
||||
build::mk_path_global(cx, span,
|
||||
~[cx.ident_of(~"core"),
|
||||
cx.ident_of(~"cmp"),
|
||||
cx.ident_of(cnst)])
|
||||
@ -61,7 +61,7 @@ pub fn cs_cmp(cx: @ext_ctxt, span: span,
|
||||
// foldr (possibly) nests the matches in lexical_ordering better
|
||||
false,
|
||||
|cx, span, old, new| {
|
||||
build::mk_call(cx, span, lexical_ord, ~[old, new])
|
||||
build::mk_call_global(cx, span, lexical_ord, ~[old, new])
|
||||
},
|
||||
ordering_const(cx, span, Equal),
|
||||
|cx, span, list| {
|
||||
|
Loading…
Reference in New Issue
Block a user