@@ -17,7 +17,7 @@ use crate::thir::Thir;
17
17
use crate :: traits;
18
18
use crate :: ty:: query:: { self , TyCtxtAt } ;
19
19
use crate :: ty:: {
20
- self , AdtDef , AdtDefData , AdtKind , Binder , Const , ConstS , DefIdTree , FloatTy , FloatVar ,
20
+ self , AdtDef , AdtDefData , AdtKind , Binder , Const , ConstData , DefIdTree , FloatTy , FloatVar ,
21
21
FloatVid , GenericParamDefKind , ImplPolarity , InferTy , IntTy , IntVar , IntVid , List , ParamConst ,
22
22
ParamTy , PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , Region , RegionKind ,
23
23
ReprOptions , TraitObjectVisitor , Ty , TyKind , TyVar , TyVid , TypeAndMut , TypeckResults , UintTy ,
@@ -140,7 +140,7 @@ pub struct CtxtInterners<'tcx> {
140
140
predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
141
141
projs : InternedSet < ' tcx , List < ProjectionKind > > ,
142
142
place_elems : InternedSet < ' tcx , List < PlaceElem < ' tcx > > > ,
143
- const_ : InternedSet < ' tcx , ConstS < ' tcx > > ,
143
+ const_ : InternedSet < ' tcx , ConstData < ' tcx > > ,
144
144
const_allocation : InternedSet < ' tcx , Allocation > ,
145
145
bound_variable_kinds : InternedSet < ' tcx , List < ty:: BoundVariableKind > > ,
146
146
layout : InternedSet < ' tcx , LayoutS < VariantIdx > > ,
@@ -331,7 +331,7 @@ impl<'tcx> CommonConsts<'tcx> {
331
331
} ;
332
332
333
333
CommonConsts {
334
- unit : mk_const ( ty:: ConstS {
334
+ unit : mk_const ( ty:: ConstData {
335
335
kind : ty:: ConstKind :: Value ( ty:: ValTree :: zst ( ) ) ,
336
336
ty : types. unit ,
337
337
} ) ,
@@ -1601,7 +1601,7 @@ macro_rules! direct_interners {
1601
1601
1602
1602
direct_interners ! {
1603
1603
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>,
1605
1605
const_allocation: intern_const_alloc( Allocation ) : ConstAllocation -> ConstAllocation <' tcx>,
1606
1606
layout: intern_layout( LayoutS <VariantIdx >) : Layout -> Layout <' tcx>,
1607
1607
adt_def: intern_adt_def( AdtDefData ) : AdtDef -> AdtDef <' tcx>,
@@ -1976,7 +1976,7 @@ impl<'tcx> TyCtxt<'tcx> {
1976
1976
1977
1977
#[ inline]
1978
1978
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 } )
1980
1980
}
1981
1981
1982
1982
#[ inline]
0 commit comments