@@ -103,8 +103,7 @@ pub struct CtxtInterners<'tcx> {
103
103
substs : InternedSet < ' tcx , InternalSubsts < ' tcx > > ,
104
104
canonical_var_infos : InternedSet < ' tcx , List < CanonicalVarInfo < ' tcx > > > ,
105
105
region : InternedSet < ' tcx , RegionKind > ,
106
- poly_existential_predicates :
107
- InternedSet < ' tcx , List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > > ,
106
+ poly_existential_predicates : InternedSet < ' tcx , List < ExistentialPredicate < ' tcx > > > ,
108
107
predicate : InternedSet < ' tcx , PredicateInner < ' tcx > > ,
109
108
predicates : InternedSet < ' tcx , List < Predicate < ' tcx > > > ,
110
109
projs : InternedSet < ' tcx , List < ProjectionKind > > ,
@@ -1672,7 +1671,7 @@ nop_lift! {const_allocation; &'a Allocation => &'tcx Allocation}
1672
1671
nop_lift ! { predicate; & ' a PredicateInner <' a> => & ' tcx PredicateInner <' tcx>}
1673
1672
1674
1673
nop_list_lift ! { type_list; Ty <' a> => Ty <' tcx>}
1675
- nop_list_lift ! { poly_existential_predicates; ty :: Binder < ' a , ExistentialPredicate <' a>> => ty :: Binder < ' tcx , ExistentialPredicate <' tcx> >}
1674
+ nop_list_lift ! { poly_existential_predicates; ExistentialPredicate <' a> => ExistentialPredicate <' tcx>}
1676
1675
nop_list_lift ! { predicates; Predicate <' a> => Predicate <' tcx>}
1677
1676
nop_list_lift ! { canonical_var_infos; CanonicalVarInfo <' a> => CanonicalVarInfo <' tcx>}
1678
1677
nop_list_lift ! { projs; ProjectionKind => ProjectionKind }
@@ -2109,7 +2108,7 @@ slice_interners!(
2109
2108
substs: _intern_substs( GenericArg <' tcx>) ,
2110
2109
canonical_var_infos: _intern_canonical_var_infos( CanonicalVarInfo <' tcx>) ,
2111
2110
poly_existential_predicates:
2112
- _intern_poly_existential_predicates( ty:: Binder < ' tcx , ExistentialPredicate <' tcx> >) ,
2111
+ _intern_poly_existential_predicates( ty:: ExistentialPredicate <' tcx>) ,
2113
2112
predicates: _intern_predicates( Predicate <' tcx>) ,
2114
2113
projs: _intern_projs( ProjectionKind ) ,
2115
2114
place_elems: _intern_place_elems( PlaceElem <' tcx>) ,
@@ -2372,7 +2371,7 @@ impl<'tcx> TyCtxt<'tcx> {
2372
2371
#[ inline]
2373
2372
pub fn mk_dynamic (
2374
2373
self ,
2375
- obj : & ' tcx List < ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > > ,
2374
+ obj : & ' tcx List < ExistentialPredicate < ' tcx > > ,
2376
2375
reg : ty:: Region < ' tcx > ,
2377
2376
) -> Ty < ' tcx > {
2378
2377
self . mk_ty ( Dynamic ( obj, reg) )
@@ -2504,8 +2503,8 @@ impl<'tcx> TyCtxt<'tcx> {
2504
2503
2505
2504
pub fn intern_poly_existential_predicates (
2506
2505
self ,
2507
- eps : & [ ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > ] ,
2508
- ) -> & ' tcx List < ty :: Binder < ' tcx , ExistentialPredicate < ' tcx > > > {
2506
+ eps : & [ ty:: ExistentialPredicate < ' tcx > ] ,
2507
+ ) -> & ' tcx List < ExistentialPredicate < ' tcx > > {
2509
2508
assert ! ( !eps. is_empty( ) ) ;
2510
2509
assert ! (
2511
2510
eps. array_windows( )
@@ -2577,10 +2576,7 @@ impl<'tcx> TyCtxt<'tcx> {
2577
2576
}
2578
2577
2579
2578
pub fn mk_poly_existential_predicates <
2580
- I : InternAs <
2581
- [ ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > ] ,
2582
- & ' tcx List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > ,
2583
- > ,
2579
+ I : InternAs < [ ExistentialPredicate < ' tcx > ] , & ' tcx List < ExistentialPredicate < ' tcx > > > ,
2584
2580
> (
2585
2581
self ,
2586
2582
iter : I ,
0 commit comments