@@ -17,11 +17,11 @@ 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 , 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 ,
25
25
} ;
26
26
use crate :: ty:: { GenericArg , GenericArgKind , InternalSubsts , SubstsRef , UserSubsts } ;
27
27
use rustc_ast as ast;
@@ -109,7 +109,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
109
109
type Mutability = hir:: Mutability ;
110
110
type Movability = hir:: Movability ;
111
111
type PolyFnSig = PolyFnSig < ' tcx > ;
112
- type ListBinderExistentialPredicate = & ' tcx List < Binder < ' tcx , ExistentialPredicate < ' tcx > > > ;
112
+ type ListBinderExistentialPredicate = & ' tcx List < PolyExistentialPredicate < ' tcx > > ;
113
113
type BinderListTy = Binder < ' tcx , & ' tcx List < Ty < ' tcx > > > ;
114
114
type ListTy = & ' tcx List < Ty < ' tcx > > ;
115
115
type ProjectionTy = ty:: ProjectionTy < ' tcx > ;
@@ -140,8 +140,7 @@ pub struct CtxtInterners<'tcx> {
140
140
substs : InternedSet < ' tcx , InternalSubsts < ' tcx > > ,
141
141
canonical_var_infos : InternedSet < ' tcx , List < CanonicalVarInfo < ' tcx > > > ,
142
142
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 > > > ,
145
144
predicate : InternedSet < ' tcx , PredicateS < ' tcx > > ,
146
145
predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
147
146
projs : InternedSet < ' tcx , List < ProjectionKind > > ,
@@ -1810,7 +1809,7 @@ nop_lift! {const_; Const<'a> => Const<'tcx>}
1810
1809
nop_lift ! { const_allocation; ConstAllocation <' a> => ConstAllocation <' tcx>}
1811
1810
nop_lift ! { predicate; Predicate <' a> => Predicate <' tcx>}
1812
1811
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>}
1814
1813
nop_list_lift ! { predicates; Predicate <' a> => Predicate <' tcx>}
1815
1814
nop_list_lift ! { canonical_var_infos; CanonicalVarInfo <' a> => CanonicalVarInfo <' tcx>}
1816
1815
nop_list_lift ! { projs; ProjectionKind => ProjectionKind }
@@ -2265,7 +2264,7 @@ slice_interners!(
2265
2264
substs: _intern_substs( GenericArg <' tcx>) ,
2266
2265
canonical_var_infos: _intern_canonical_var_infos( CanonicalVarInfo <' tcx>) ,
2267
2266
poly_existential_predicates:
2268
- _intern_poly_existential_predicates( ty :: Binder <' tcx, ExistentialPredicate < ' tcx> >) ,
2267
+ _intern_poly_existential_predicates( PolyExistentialPredicate <' tcx>) ,
2269
2268
predicates: _intern_predicates( Predicate <' tcx>) ,
2270
2269
projs: _intern_projs( ProjectionKind ) ,
2271
2270
place_elems: _intern_place_elems( PlaceElem <' tcx>) ,
@@ -2544,7 +2543,7 @@ impl<'tcx> TyCtxt<'tcx> {
2544
2543
#[ inline]
2545
2544
pub fn mk_dynamic (
2546
2545
self ,
2547
- obj : & ' tcx List < ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > > ,
2546
+ obj : & ' tcx List < PolyExistentialPredicate < ' tcx > > ,
2548
2547
reg : ty:: Region < ' tcx > ,
2549
2548
repr : DynKind ,
2550
2549
) -> Ty < ' tcx > {
@@ -2682,8 +2681,8 @@ impl<'tcx> TyCtxt<'tcx> {
2682
2681
2683
2682
pub fn intern_poly_existential_predicates (
2684
2683
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 > > {
2687
2686
assert ! ( !eps. is_empty( ) ) ;
2688
2687
assert ! (
2689
2688
eps. array_windows( )
@@ -2767,10 +2766,7 @@ impl<'tcx> TyCtxt<'tcx> {
2767
2766
}
2768
2767
2769
2768
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 > > > ,
2774
2770
> (
2775
2771
self ,
2776
2772
iter : I ,
0 commit comments