@@ -38,12 +38,12 @@ use ty::ReprOptions;
3838use traits;
3939use traits:: { Clause , Clauses , Goal , Goals } ;
4040use ty:: { self , Ty , TypeAndMut } ;
41- use ty:: { TyS , TypeVariants , List } ;
41+ use ty:: { TyS , TyKind , List } ;
4242use ty:: { AdtKind , AdtDef , ClosureSubsts , GeneratorSubsts , Region , Const } ;
4343use ty:: { PolyFnSig , InferTy , ParamTy , ProjectionTy , ExistentialPredicate , Predicate } ;
4444use ty:: RegionKind ;
4545use ty:: { TyVar , TyVid , IntVar , IntVid , FloatVar , FloatVid } ;
46- use ty:: TypeVariants :: * ;
46+ use ty:: TyKind :: * ;
4747use ty:: GenericParamDefKind ;
4848use ty:: layout:: { LayoutDetails , TargetDataLayout } ;
4949use ty:: query;
@@ -167,7 +167,7 @@ impl<'gcx: 'tcx, 'tcx> CtxtInterners<'tcx> {
167167 fn intern_ty (
168168 local : & CtxtInterners < ' tcx > ,
169169 global : & CtxtInterners < ' gcx > ,
170- st : TypeVariants < ' tcx >
170+ st : TyKind < ' tcx >
171171 ) -> Ty < ' tcx > {
172172 let flags = super :: flags:: FlagComputation :: for_sty ( & st) ;
173173
@@ -803,7 +803,7 @@ impl<'tcx> CommonTypes<'tcx> {
803803 fn new ( interners : & CtxtInterners < ' tcx > ) -> CommonTypes < ' tcx > {
804804 // Ensure our type representation does not grow
805805 #[ cfg( target_pointer_width = "64" ) ]
806- assert ! ( mem:: size_of:: <ty:: TypeVariants >( ) <= 24 ) ;
806+ assert ! ( mem:: size_of:: <ty:: TyKind >( ) <= 24 ) ;
807807 #[ cfg( target_pointer_width = "64" ) ]
808808 assert ! ( mem:: size_of:: <ty:: TyS >( ) <= 32 ) ;
809809
@@ -1540,7 +1540,7 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
15401540/// None is returned if the value or one of the components is not part
15411541/// of the provided context.
15421542/// For Ty, None can be returned if either the type interner doesn't
1543- /// contain the TypeVariants key or if the address of the interned
1543+ /// contain the TyKind key or if the address of the interned
15441544/// pointer differs. The latter case is possible if a primitive type,
15451545/// e.g. `()` or `u8`, was interned in a different context.
15461546pub trait Lift < ' tcx > : fmt:: Debug {
@@ -2107,8 +2107,8 @@ impl<'tcx> Hash for Interned<'tcx, TyS<'tcx>> {
21072107 }
21082108}
21092109
2110- impl < ' tcx : ' lcx , ' lcx > Borrow < TypeVariants < ' lcx > > for Interned < ' tcx , TyS < ' tcx > > {
2111- fn borrow < ' a > ( & ' a self ) -> & ' a TypeVariants < ' lcx > {
2110+ impl < ' tcx : ' lcx , ' lcx > Borrow < TyKind < ' lcx > > for Interned < ' tcx , TyS < ' tcx > > {
2111+ fn borrow < ' a > ( & ' a self ) -> & ' a TyKind < ' lcx > {
21122112 & self . 0 . sty
21132113 }
21142114}
@@ -2340,7 +2340,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
23402340 self . mk_fn_ptr ( converted_sig)
23412341 }
23422342
2343- pub fn mk_ty ( & self , st : TypeVariants < ' tcx > ) -> Ty < ' tcx > {
2343+ pub fn mk_ty ( & self , st : TyKind < ' tcx > ) -> Ty < ' tcx > {
23442344 CtxtInterners :: intern_ty ( & self . interners , & self . global_interners , st)
23452345 }
23462346
0 commit comments