Skip to content

Commit ea9bdaa

Browse files
committed
libsyntax: (maybe) fix deriving(TotalOrd) on windows
1 parent bff3748 commit ea9bdaa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ pub fn ordering_const(cx: @ext_ctxt, span: span, cnst: Ordering) -> @expr {
4545
Equal => ~"Equal",
4646
Greater => ~"Greater"
4747
};
48-
build::mk_path(cx, span,
49-
~[cx.ident_of(~"core"),
50-
cx.ident_of(~"cmp"),
51-
cx.ident_of(cnst)])
48+
build::mk_path_global(cx, span,
49+
~[cx.ident_of(~"core"),
50+
cx.ident_of(~"cmp"),
51+
cx.ident_of(cnst)])
5252
}
5353

5454
pub fn cs_cmp(cx: @ext_ctxt, span: span,
@@ -61,7 +61,7 @@ pub fn cs_cmp(cx: @ext_ctxt, span: span,
6161
// foldr (possibly) nests the matches in lexical_ordering better
6262
false,
6363
|cx, span, old, new| {
64-
build::mk_call(cx, span, lexical_ord, ~[old, new])
64+
build::mk_call_global(cx, span, lexical_ord, ~[old, new])
6565
},
6666
ordering_const(cx, span, Equal),
6767
|cx, span, list| {
@@ -70,7 +70,7 @@ pub fn cs_cmp(cx: @ext_ctxt, span: span,
7070
// later one
7171
[(self_var, _, _),
7272
(other_var, _, _)] => ordering_const(cx, span,
73-
self_var.cmp(&other_var)),
73+
self_var.cmp(&other_var)),
7474
_ => cx.span_bug(span, "Not exactly 2 arguments in `deriving(TotalOrd)`")
7575
}
7676
},

0 commit comments

Comments
 (0)