@@ -17,7 +17,7 @@ use crate::thir::Thir;
1717use crate :: traits;
1818use crate :: ty:: query:: { self , TyCtxtAt } ;
1919use crate :: ty:: {
20- self , AdtDef , AdtDefData , AdtKind , Binder , Const , ConstS , DefIdTree , FloatTy , FloatVar ,
20+ self , AdtDef , AdtDefData , AdtKind , Binder , Const , ConstData , DefIdTree , FloatTy , FloatVar ,
2121 FloatVid , GenericParamDefKind , ImplPolarity , InferTy , IntTy , IntVar , IntVid , List , ParamConst ,
2222 ParamTy , PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , Region , RegionKind ,
2323 ReprOptions , TraitObjectVisitor , Ty , TyKind , TyVar , TyVid , TypeAndMut , TypeckResults , UintTy ,
@@ -140,7 +140,7 @@ pub struct CtxtInterners<'tcx> {
140140 predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
141141 projs : InternedSet < ' tcx , List < ProjectionKind > > ,
142142 place_elems : InternedSet < ' tcx , List < PlaceElem < ' tcx > > > ,
143- const_ : InternedSet < ' tcx , ConstS < ' tcx > > ,
143+ const_ : InternedSet < ' tcx , ConstData < ' tcx > > ,
144144 const_allocation : InternedSet < ' tcx , Allocation > ,
145145 bound_variable_kinds : InternedSet < ' tcx , List < ty:: BoundVariableKind > > ,
146146 layout : InternedSet < ' tcx , LayoutS < VariantIdx > > ,
@@ -331,7 +331,7 @@ impl<'tcx> CommonConsts<'tcx> {
331331 } ;
332332
333333 CommonConsts {
334- unit : mk_const ( ty:: ConstS {
334+ unit : mk_const ( ty:: ConstData {
335335 kind : ty:: ConstKind :: Value ( ty:: ValTree :: zst ( ) ) ,
336336 ty : types. unit ,
337337 } ) ,
@@ -1601,7 +1601,7 @@ macro_rules! direct_interners {
16011601
16021602direct_interners ! {
16031603 region: mk_region( RegionKind <' tcx>) : Region -> Region <' tcx>,
1604- const_: mk_const_internal( ConstS <' tcx>) : Const -> Const <' tcx>,
1604+ const_: mk_const_internal( ConstData <' tcx>) : Const -> Const <' tcx>,
16051605 const_allocation: intern_const_alloc( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
16061606 layout: intern_layout( LayoutS <VariantIdx >) : Layout -> Layout <' tcx>,
16071607 adt_def: intern_adt_def( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
@@ -1976,7 +1976,7 @@ impl<'tcx> TyCtxt<'tcx> {
19761976
19771977 #[ inline]
19781978 pub fn mk_const ( self , kind : impl Into < ty:: ConstKind < ' tcx > > , ty : Ty < ' tcx > ) -> Const < ' tcx > {
1979- self . mk_const_internal ( ty:: ConstS { kind : kind. into ( ) , ty } )
1979+ self . mk_const_internal ( ty:: ConstData { kind : kind. into ( ) , ty } )
19801980 }
19811981
19821982 #[ inline]
0 commit comments