@@ -17,7 +17,7 @@ use crate::traits;
17
17
use crate :: ty:: query:: { self , TyCtxtAt } ;
18
18
use crate :: ty:: {
19
19
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 ,
21
21
GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid , List , ParamConst , ParamTy ,
22
22
PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy ,
23
23
Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut ,
@@ -145,7 +145,7 @@ pub struct CtxtInterners<'tcx> {
145
145
predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
146
146
projs : InternedSet < ' tcx , List < ProjectionKind > > ,
147
147
place_elems : InternedSet < ' tcx , List < PlaceElem < ' tcx > > > ,
148
- const_ : InternedSet < ' tcx , ConstS < ' tcx > > ,
148
+ const_ : InternedSet < ' tcx , ConstData < ' tcx > > ,
149
149
const_allocation : InternedSet < ' tcx , Allocation > ,
150
150
bound_variable_kinds : InternedSet < ' tcx , List < ty:: BoundVariableKind > > ,
151
151
layout : InternedSet < ' tcx , LayoutS < VariantIdx > > ,
@@ -985,7 +985,7 @@ impl<'tcx> CommonConsts<'tcx> {
985
985
} ;
986
986
987
987
CommonConsts {
988
- unit : mk_const ( ty:: ConstS {
988
+ unit : mk_const ( ty:: ConstData {
989
989
kind : ty:: ConstKind :: Value ( ty:: ValTree :: zst ( ) ) ,
990
990
ty : types. unit ,
991
991
} ) ,
@@ -2242,7 +2242,7 @@ macro_rules! direct_interners {
2242
2242
2243
2243
direct_interners ! {
2244
2244
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>,
2246
2246
const_allocation: intern_const_alloc( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
2247
2247
layout: intern_layout( LayoutS <VariantIdx >) : Layout -> Layout <' tcx>,
2248
2248
adt_def: intern_adt_def( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
@@ -2592,7 +2592,7 @@ impl<'tcx> TyCtxt<'tcx> {
2592
2592
2593
2593
#[ inline]
2594
2594
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 } )
2596
2596
}
2597
2597
2598
2598
#[ inline]
0 commit comments