@@ -17,7 +17,7 @@ use crate::traits;
1717use crate :: ty:: query:: { self , TyCtxtAt } ;
1818use crate :: ty:: {
1919 self , AdtDef , AdtDefData , AdtKind , Binder , BindingMode , BoundVar , CanonicalPolyFnSig ,
20- ClosureSizeProfileData , Const , ConstS , ConstVid , DefIdTree , FloatTy , FloatVar , FloatVid ,
20+ ClosureSizeProfileData , Const , ConstData , ConstVid , DefIdTree , FloatTy , FloatVar , FloatVid ,
2121 GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid , List , ParamConst , ParamTy ,
2222 PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy ,
2323 Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut ,
@@ -145,7 +145,7 @@ pub struct CtxtInterners<'tcx> {
145145 predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
146146 projs : InternedSet < ' tcx , List < ProjectionKind > > ,
147147 place_elems : InternedSet < ' tcx , List < PlaceElem < ' tcx > > > ,
148- const_ : InternedSet < ' tcx , ConstS < ' tcx > > ,
148+ const_ : InternedSet < ' tcx , ConstData < ' tcx > > ,
149149 const_allocation : InternedSet < ' tcx , Allocation > ,
150150 bound_variable_kinds : InternedSet < ' tcx , List < ty:: BoundVariableKind > > ,
151151 layout : InternedSet < ' tcx , LayoutS < VariantIdx > > ,
@@ -985,7 +985,7 @@ impl<'tcx> CommonConsts<'tcx> {
985985 } ;
986986
987987 CommonConsts {
988- unit : mk_const ( ty:: ConstS {
988+ unit : mk_const ( ty:: ConstData {
989989 kind : ty:: ConstKind :: Value ( ty:: ValTree :: zst ( ) ) ,
990990 ty : types. unit ,
991991 } ) ,
@@ -2242,7 +2242,7 @@ macro_rules! direct_interners {
22422242
22432243direct_interners ! {
22442244 region: mk_region( RegionKind <' tcx>) : Region -> Region <' tcx>,
2245- const_: mk_const_internal( ConstS <' tcx>) : Const -> Const <' tcx>,
2245+ const_: mk_const_internal( ConstData <' tcx>) : Const -> Const <' tcx>,
22462246 const_allocation: intern_const_alloc( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
22472247 layout: intern_layout( LayoutS <VariantIdx >) : Layout -> Layout <' tcx>,
22482248 adt_def: intern_adt_def( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
@@ -2592,7 +2592,7 @@ impl<'tcx> TyCtxt<'tcx> {
25922592
25932593 #[ inline]
25942594 pub fn mk_const ( self , kind : ty:: ConstKind < ' tcx > , ty : Ty < ' tcx > ) -> Const < ' tcx > {
2595- self . mk_const_internal ( ty:: ConstS { kind, ty } )
2595+ self . mk_const_internal ( ty:: ConstData { kind, ty } )
25962596 }
25972597
25982598 #[ inline]
0 commit comments