@@ -146,7 +146,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span,
146
146
let new = {
147
147
let other_f = match other_fs {
148
148
[ ref o_f] => o_f,
149
- _ => cx. span_bug ( span, "not exactly 2 arguments in `deriving(Ord )`" ) ,
149
+ _ => cx. span_bug ( span, "not exactly 2 arguments in `deriving(PartialOrd )`" ) ,
150
150
} ;
151
151
152
152
let args = vec ! [
@@ -170,7 +170,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span,
170
170
equals_expr. clone ( ) ,
171
171
|cx, span, ( self_args, tag_tuple) , _non_self_args| {
172
172
if self_args. len ( ) != 2 {
173
- cx. span_bug ( span, "not exactly 2 arguments in `deriving(Ord )`" )
173
+ cx. span_bug ( span, "not exactly 2 arguments in `deriving(PartialOrd )`" )
174
174
} else {
175
175
some_ordering_collapsed ( cx, span, PartialCmpOp , tag_tuple)
176
176
}
@@ -204,7 +204,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt,
204
204
*/
205
205
let other_f = match other_fs {
206
206
[ ref o_f] => o_f,
207
- _ => cx. span_bug ( span, "not exactly 2 arguments in `deriving(Ord )`" )
207
+ _ => cx. span_bug ( span, "not exactly 2 arguments in `deriving(PartialOrd )`" )
208
208
} ;
209
209
210
210
let cmp = cx. expr_binary ( span, op, self_f. clone ( ) , other_f. clone ( ) ) ;
@@ -218,7 +218,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt,
218
218
cx. expr_bool ( span, equal) ,
219
219
|cx, span, ( self_args, tag_tuple) , _non_self_args| {
220
220
if self_args. len ( ) != 2 {
221
- cx. span_bug ( span, "not exactly 2 arguments in `deriving(Ord )`" )
221
+ cx. span_bug ( span, "not exactly 2 arguments in `deriving(PartialOrd )`" )
222
222
} else {
223
223
let op = match ( less, equal) {
224
224
( true , true ) => LeOp , ( true , false ) => LtOp ,
0 commit comments