@@ -215,7 +215,7 @@ impl Ord for Ordering {
215
215
#[ inline]
216
216
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
217
217
fn cmp ( & self , other : & Ordering ) -> Ordering {
218
- ( * self as int ) . cmp ( & ( * other as int ) )
218
+ ( * self as i32 ) . cmp ( & ( * other as i32 ) )
219
219
}
220
220
}
221
221
@@ -224,7 +224,7 @@ impl PartialOrd for Ordering {
224
224
#[ inline]
225
225
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
226
226
fn partial_cmp ( & self , other : & Ordering ) -> Option < Ordering > {
227
- ( * self as int ) . partial_cmp ( & ( * other as int ) )
227
+ ( * self as i32 ) . partial_cmp ( & ( * other as i32 ) )
228
228
}
229
229
}
230
230
@@ -482,7 +482,7 @@ mod impls {
482
482
}
483
483
484
484
partial_eq_impl ! {
485
- bool char uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64
485
+ bool char usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64
486
486
}
487
487
488
488
macro_rules! eq_impl {
@@ -492,7 +492,7 @@ mod impls {
492
492
) * )
493
493
}
494
494
495
- eq_impl ! { ( ) bool char uint u8 u16 u32 u64 int i8 i16 i32 i64 }
495
+ eq_impl ! { ( ) bool char usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
496
496
497
497
macro_rules! partial_ord_impl {
498
498
( $( $t: ty) * ) => ( $(
@@ -535,7 +535,7 @@ mod impls {
535
535
}
536
536
}
537
537
538
- partial_ord_impl ! { char uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64 }
538
+ partial_ord_impl ! { char usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
539
539
540
540
macro_rules! ord_impl {
541
541
( $( $t: ty) * ) => ( $(
@@ -565,7 +565,7 @@ mod impls {
565
565
}
566
566
}
567
567
568
- ord_impl ! { char uint u8 u16 u32 u64 int i8 i16 i32 i64 }
568
+ ord_impl ! { char usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
569
569
570
570
// & pointers
571
571
0 commit comments