@@ -146,7 +146,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span,
146146 let new = {
147147 let other_f = match other_fs {
148148 [ 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 )`" ) ,
150150 } ;
151151
152152 let args = vec ! [
@@ -170,7 +170,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span,
170170 equals_expr. clone ( ) ,
171171 |cx, span, ( self_args, tag_tuple) , _non_self_args| {
172172 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 )`" )
174174 } else {
175175 some_ordering_collapsed ( cx, span, PartialCmpOp , tag_tuple)
176176 }
@@ -204,7 +204,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt,
204204 */
205205 let other_f = match other_fs {
206206 [ 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 )`" )
208208 } ;
209209
210210 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,
218218 cx. expr_bool ( span, equal) ,
219219 |cx, span, ( self_args, tag_tuple) , _non_self_args| {
220220 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 )`" )
222222 } else {
223223 let op = match ( less, equal) {
224224 ( true , true ) => LeOp , ( true , false ) => LtOp ,
0 commit comments