@@ -45,10 +45,10 @@ pub fn ordering_const(cx: @ext_ctxt, span: span, cnst: Ordering) -> @expr {
45
45
Equal => ~"Equal ",
46
46
Greater => ~"Greater "
47
47
} ;
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) ] )
52
52
}
53
53
54
54
pub fn cs_cmp( cx : @ext_ctxt , span : span ,
@@ -61,7 +61,7 @@ pub fn cs_cmp(cx: @ext_ctxt, span: span,
61
61
// foldr (possibly) nests the matches in lexical_ordering better
62
62
false,
63
63
|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] )
65
65
} ,
66
66
ordering_const ( cx , span , Equal ) ,
67
67
|cx, span , list| {
@@ -70,7 +70,7 @@ pub fn cs_cmp(cx: @ext_ctxt, span: span,
70
70
// later one
71
71
[ ( self_var, _, _) ,
72
72
( other_var, _, _) ] => ordering_const( cx, span,
73
- self_var. cmp( & other_var) ) ,
73
+ self_var. cmp( & other_var) ) ,
74
74
_ => cx. span_bug( span, "Not exactly 2 arguments in `deriving(TotalOrd)`" )
75
75
}
76
76
} ,
0 commit comments