@@ -101,12 +101,11 @@ use rustc_middle::ty::adjustment::{Adjust, Adjustment, AutoBorrow};
101
101
use rustc_middle:: ty:: binding:: BindingMode ;
102
102
use rustc_middle:: ty:: fast_reject:: SimplifiedType :: {
103
103
ArraySimplifiedType , BoolSimplifiedType , CharSimplifiedType , FloatSimplifiedType , IntSimplifiedType ,
104
- PtrSimplifiedType , SliceSimplifiedType , StrSimplifiedType , UintSimplifiedType ,
104
+ PtrSimplifiedType , SliceSimplifiedType , StrSimplifiedType ,
105
105
} ;
106
106
use rustc_middle:: ty:: {
107
107
layout:: IntegerExt , BorrowKind , ClosureKind , Ty , TyCtxt , TypeAndMut , TypeVisitableExt , UpvarCapture ,
108
108
} ;
109
- use rustc_middle:: ty:: { FloatTy , IntTy , UintTy } ;
110
109
use rustc_span:: hygiene:: { ExpnKind , MacroKind } ;
111
110
use rustc_span:: source_map:: SourceMap ;
112
111
use rustc_span:: sym;
@@ -524,20 +523,20 @@ fn find_primitive_impls<'tcx>(tcx: TyCtxt<'tcx>, name: &str) -> impl Iterator<It
524
523
// Maybe this is something we should do here too.
525
524
"const_ptr" => PtrSimplifiedType ( Mutability :: Not ) ,
526
525
"mut_ptr" => PtrSimplifiedType ( Mutability :: Mut ) ,
527
- "isize" => IntSimplifiedType ( IntTy :: Isize ) ,
528
- "i8" => IntSimplifiedType ( IntTy :: I8 ) ,
529
- "i16" => IntSimplifiedType ( IntTy :: I16 ) ,
530
- "i32" => IntSimplifiedType ( IntTy :: I32 ) ,
531
- "i64" => IntSimplifiedType ( IntTy :: I64 ) ,
532
- "i128" => IntSimplifiedType ( IntTy :: I128 ) ,
533
- "usize" => UintSimplifiedType ( UintTy :: Usize ) ,
534
- "u8" => UintSimplifiedType ( UintTy :: U8 ) ,
535
- "u16" => UintSimplifiedType ( UintTy :: U16 ) ,
536
- "u32" => UintSimplifiedType ( UintTy :: U32 ) ,
537
- "u64" => UintSimplifiedType ( UintTy :: U64 ) ,
538
- "u128" => UintSimplifiedType ( UintTy :: U128 ) ,
539
- "f32" => FloatSimplifiedType ( FloatTy :: F32 ) ,
540
- "f64" => FloatSimplifiedType ( FloatTy :: F64 ) ,
526
+ "isize" => IntSimplifiedType ,
527
+ "i8" => IntSimplifiedType ,
528
+ "i16" => IntSimplifiedType ,
529
+ "i32" => IntSimplifiedType ,
530
+ "i64" => IntSimplifiedType ,
531
+ "i128" => IntSimplifiedType ,
532
+ "usize" => IntSimplifiedType ,
533
+ "u8" => IntSimplifiedType ,
534
+ "u16" => IntSimplifiedType ,
535
+ "u32" => IntSimplifiedType ,
536
+ "u64" => IntSimplifiedType ,
537
+ "u128" => IntSimplifiedType ,
538
+ "f32" => FloatSimplifiedType ,
539
+ "f64" => FloatSimplifiedType ,
541
540
_ => return [ ] . iter ( ) . copied ( ) ,
542
541
} ;
543
542
0 commit comments