@@ -17,11 +17,11 @@ 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 , ExistentialPredicate , FloatTy ,
21- FloatVar , FloatVid , GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid , List ,
22- ParamConst , ParamTy , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy , Region ,
23- RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut , UintTy ,
24- Visibility ,
20+ ClosureSizeProfileData , Const , ConstS , ConstVid , DefIdTree , FloatTy , FloatVar , FloatVid ,
21+ GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid , List , ParamConst , ParamTy ,
22+ PolyExistentialPredicate , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy ,
23+ Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut ,
24+ UintTy , Visibility ,
2525} ;
2626use crate :: ty:: { GenericArg , GenericArgKind , InternalSubsts , SubstsRef , UserSubsts } ;
2727use rustc_ast as ast;
@@ -109,7 +109,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
109109 type Mutability = hir:: Mutability ;
110110 type Movability = hir:: Movability ;
111111 type PolyFnSig = PolyFnSig < ' tcx > ;
112- type ListBinderExistentialPredicate = & ' tcx List < Binder < ' tcx , ExistentialPredicate < ' tcx > > > ;
112+ type ListBinderExistentialPredicate = & ' tcx List < PolyExistentialPredicate < ' tcx > > ;
113113 type BinderListTy = Binder < ' tcx , & ' tcx List < Ty < ' tcx > > > ;
114114 type ListTy = & ' tcx List < Ty < ' tcx > > ;
115115 type ProjectionTy = ty:: ProjectionTy < ' tcx > ;
@@ -140,8 +140,7 @@ pub struct CtxtInterners<'tcx> {
140140 substs : InternedSet < ' tcx , InternalSubsts < ' tcx > > ,
141141 canonical_var_infos : InternedSet < ' tcx , List < CanonicalVarInfo < ' tcx > > > ,
142142 region : InternedSet < ' tcx , RegionKind < ' tcx > > ,
143- poly_existential_predicates :
144- InternedSet < ' tcx , List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > > ,
143+ poly_existential_predicates : InternedSet < ' tcx , List < PolyExistentialPredicate < ' tcx > > > ,
145144 predicate : InternedSet < ' tcx , PredicateS < ' tcx > > ,
146145 predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
147146 projs : InternedSet < ' tcx , List < ProjectionKind > > ,
@@ -1810,7 +1809,7 @@ nop_lift! {const_; Const<'a> => Const<'tcx>}
18101809nop_lift ! { const_allocation; ConstAllocation <' a> => ConstAllocation <' tcx>}
18111810nop_lift ! { predicate; Predicate <' a> => Predicate <' tcx>}
18121811
1813- nop_list_lift ! { poly_existential_predicates; ty :: Binder <' a, ExistentialPredicate < ' a>> => ty :: Binder <' tcx, ExistentialPredicate < ' tcx> >}
1812+ nop_list_lift ! { poly_existential_predicates; PolyExistentialPredicate <' a> => PolyExistentialPredicate <' tcx>}
18141813nop_list_lift ! { predicates; Predicate <' a> => Predicate <' tcx>}
18151814nop_list_lift ! { canonical_var_infos; CanonicalVarInfo <' a> => CanonicalVarInfo <' tcx>}
18161815nop_list_lift ! { projs; ProjectionKind => ProjectionKind }
@@ -2265,7 +2264,7 @@ slice_interners!(
22652264 substs: _intern_substs( GenericArg <' tcx>) ,
22662265 canonical_var_infos: _intern_canonical_var_infos( CanonicalVarInfo <' tcx>) ,
22672266 poly_existential_predicates:
2268- _intern_poly_existential_predicates( ty :: Binder <' tcx, ExistentialPredicate < ' tcx> >) ,
2267+ _intern_poly_existential_predicates( PolyExistentialPredicate <' tcx>) ,
22692268 predicates: _intern_predicates( Predicate <' tcx>) ,
22702269 projs: _intern_projs( ProjectionKind ) ,
22712270 place_elems: _intern_place_elems( PlaceElem <' tcx>) ,
@@ -2544,7 +2543,7 @@ impl<'tcx> TyCtxt<'tcx> {
25442543 #[ inline]
25452544 pub fn mk_dynamic (
25462545 self ,
2547- obj : & ' tcx List < ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > > ,
2546+ obj : & ' tcx List < PolyExistentialPredicate < ' tcx > > ,
25482547 reg : ty:: Region < ' tcx > ,
25492548 repr : DynKind ,
25502549 ) -> Ty < ' tcx > {
@@ -2682,8 +2681,8 @@ impl<'tcx> TyCtxt<'tcx> {
26822681
26832682 pub fn intern_poly_existential_predicates (
26842683 self ,
2685- eps : & [ ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > ] ,
2686- ) -> & ' tcx List < ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > > {
2684+ eps : & [ PolyExistentialPredicate < ' tcx > ] ,
2685+ ) -> & ' tcx List < PolyExistentialPredicate < ' tcx > > {
26872686 assert ! ( !eps. is_empty( ) ) ;
26882687 assert ! (
26892688 eps. array_windows( )
@@ -2767,10 +2766,7 @@ impl<'tcx> TyCtxt<'tcx> {
27672766 }
27682767
27692768 pub fn mk_poly_existential_predicates <
2770- I : InternAs <
2771- [ ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > ] ,
2772- & ' tcx List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > ,
2773- > ,
2769+ I : InternAs < [ PolyExistentialPredicate < ' tcx > ] , & ' tcx List < PolyExistentialPredicate < ' tcx > > > ,
27742770 > (
27752771 self ,
27762772 iter : I ,
0 commit comments