@@ -19,10 +19,10 @@ use crate::ty::subst::{GenericArg, GenericArgKind, InternalSubsts, Subst, Substs
1919use crate :: ty:: TyKind :: * ;
2020use crate :: ty:: {
2121 self , AdtDef , AdtKind , Binder , BindingMode , BoundVar , CanonicalPolyFnSig , Const , ConstVid ,
22- DefIdTree , ExistentialPredicate , FloatVar , FloatVid , GenericParamDefKind , InferConst , InferTy ,
23- IntVar , IntVid , List , ParamConst , ParamTy , PolyFnSig , Predicate , PredicateInner , PredicateKind ,
24- ProjectionTy , Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar ,
25- TyVid , TypeAndMut , Visibility ,
22+ DefIdTree , ExistentialPredicate , FloatTy , FloatVar , FloatVid , GenericParamDefKind , InferConst ,
23+ InferTy , IntTy , IntVar , IntVid , List , ParamConst , ParamTy , PolyFnSig , Predicate ,
24+ PredicateInner , PredicateKind , ProjectionTy , Region , RegionKind , ReprOptions ,
25+ TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut , UintTy , Visibility ,
2626} ;
2727use rustc_ast as ast;
2828use rustc_ast:: expand:: allocator:: AllocatorKind ;
@@ -839,20 +839,20 @@ impl<'tcx> CommonTypes<'tcx> {
839839 bool : mk ( Bool ) ,
840840 char : mk ( Char ) ,
841841 never : mk ( Never ) ,
842- isize : mk ( Int ( ast :: IntTy :: Isize ) ) ,
843- i8 : mk ( Int ( ast :: IntTy :: I8 ) ) ,
844- i16 : mk ( Int ( ast :: IntTy :: I16 ) ) ,
845- i32 : mk ( Int ( ast :: IntTy :: I32 ) ) ,
846- i64 : mk ( Int ( ast :: IntTy :: I64 ) ) ,
847- i128 : mk ( Int ( ast :: IntTy :: I128 ) ) ,
848- usize : mk ( Uint ( ast :: UintTy :: Usize ) ) ,
849- u8 : mk ( Uint ( ast :: UintTy :: U8 ) ) ,
850- u16 : mk ( Uint ( ast :: UintTy :: U16 ) ) ,
851- u32 : mk ( Uint ( ast :: UintTy :: U32 ) ) ,
852- u64 : mk ( Uint ( ast :: UintTy :: U64 ) ) ,
853- u128 : mk ( Uint ( ast :: UintTy :: U128 ) ) ,
854- f32 : mk ( Float ( ast :: FloatTy :: F32 ) ) ,
855- f64 : mk ( Float ( ast :: FloatTy :: F64 ) ) ,
842+ isize : mk ( Int ( ty :: IntTy :: Isize ) ) ,
843+ i8 : mk ( Int ( ty :: IntTy :: I8 ) ) ,
844+ i16 : mk ( Int ( ty :: IntTy :: I16 ) ) ,
845+ i32 : mk ( Int ( ty :: IntTy :: I32 ) ) ,
846+ i64 : mk ( Int ( ty :: IntTy :: I64 ) ) ,
847+ i128 : mk ( Int ( ty :: IntTy :: I128 ) ) ,
848+ usize : mk ( Uint ( ty :: UintTy :: Usize ) ) ,
849+ u8 : mk ( Uint ( ty :: UintTy :: U8 ) ) ,
850+ u16 : mk ( Uint ( ty :: UintTy :: U16 ) ) ,
851+ u32 : mk ( Uint ( ty :: UintTy :: U32 ) ) ,
852+ u64 : mk ( Uint ( ty :: UintTy :: U64 ) ) ,
853+ u128 : mk ( Uint ( ty :: UintTy :: U128 ) ) ,
854+ f32 : mk ( Float ( ty :: FloatTy :: F32 ) ) ,
855+ f64 : mk ( Float ( ty :: FloatTy :: F64 ) ) ,
856856 str_ : mk ( Str ) ,
857857 self_param : mk ( ty:: Param ( ty:: ParamTy { index : 0 , name : kw:: SelfUpper } ) ) ,
858858
@@ -2102,32 +2102,32 @@ impl<'tcx> TyCtxt<'tcx> {
21022102 if pred. kind ( ) != binder { self . mk_predicate ( binder) } else { pred }
21032103 }
21042104
2105- pub fn mk_mach_int ( self , tm : ast :: IntTy ) -> Ty < ' tcx > {
2105+ pub fn mk_mach_int ( self , tm : IntTy ) -> Ty < ' tcx > {
21062106 match tm {
2107- ast :: IntTy :: Isize => self . types . isize ,
2108- ast :: IntTy :: I8 => self . types . i8 ,
2109- ast :: IntTy :: I16 => self . types . i16 ,
2110- ast :: IntTy :: I32 => self . types . i32 ,
2111- ast :: IntTy :: I64 => self . types . i64 ,
2112- ast :: IntTy :: I128 => self . types . i128 ,
2107+ IntTy :: Isize => self . types . isize ,
2108+ IntTy :: I8 => self . types . i8 ,
2109+ IntTy :: I16 => self . types . i16 ,
2110+ IntTy :: I32 => self . types . i32 ,
2111+ IntTy :: I64 => self . types . i64 ,
2112+ IntTy :: I128 => self . types . i128 ,
21132113 }
21142114 }
21152115
2116- pub fn mk_mach_uint ( self , tm : ast :: UintTy ) -> Ty < ' tcx > {
2116+ pub fn mk_mach_uint ( self , tm : UintTy ) -> Ty < ' tcx > {
21172117 match tm {
2118- ast :: UintTy :: Usize => self . types . usize ,
2119- ast :: UintTy :: U8 => self . types . u8 ,
2120- ast :: UintTy :: U16 => self . types . u16 ,
2121- ast :: UintTy :: U32 => self . types . u32 ,
2122- ast :: UintTy :: U64 => self . types . u64 ,
2123- ast :: UintTy :: U128 => self . types . u128 ,
2118+ UintTy :: Usize => self . types . usize ,
2119+ UintTy :: U8 => self . types . u8 ,
2120+ UintTy :: U16 => self . types . u16 ,
2121+ UintTy :: U32 => self . types . u32 ,
2122+ UintTy :: U64 => self . types . u64 ,
2123+ UintTy :: U128 => self . types . u128 ,
21242124 }
21252125 }
21262126
2127- pub fn mk_mach_float ( self , tm : ast :: FloatTy ) -> Ty < ' tcx > {
2127+ pub fn mk_mach_float ( self , tm : FloatTy ) -> Ty < ' tcx > {
21282128 match tm {
2129- ast :: FloatTy :: F32 => self . types . f32 ,
2130- ast :: FloatTy :: F64 => self . types . f64 ,
2129+ FloatTy :: F32 => self . types . f32 ,
2130+ FloatTy :: F64 => self . types . f64 ,
21312131 }
21322132 }
21332133
0 commit comments