@@ -17,10 +17,10 @@ use crate::ty::TyKind::*;
17
17
use crate :: ty:: {
18
18
self , AdtDef , AdtKind , Binder , BindingMode , BoundVar , CanonicalPolyFnSig ,
19
19
ClosureSizeProfileData , Const , ConstVid , DefIdTree , ExistentialPredicate , FloatTy , FloatVar ,
20
- FloatVid , GeneratorWitnessInner , GenericParamDefKind , InferConst , InferTy , IntTy , IntVar ,
21
- IntVid , List , ParamConst , ParamTy , PolyFnSig , Predicate , PredicateInner , PredicateKind ,
22
- ProjectionPredicate , ProjectionTy , Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty ,
23
- TyKind , TyS , TyVar , TyVid , TypeAndMut , UintTy ,
20
+ FloatVid , GeneratorPredicate , GeneratorWitnessInner , GenericParamDefKind , InferConst , InferTy ,
21
+ IntTy , IntVar , IntVid , List , ParamConst , ParamTy , PolyFnSig , Predicate , PredicateInner ,
22
+ PredicateKind , ProjectionTy , Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind ,
23
+ TyS , TyVar , TyVid , TypeAndMut , UintTy ,
24
24
} ;
25
25
use rustc_ast as ast;
26
26
use rustc_attr as attr;
@@ -103,7 +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
- projection_predicates : InternedSet < ' tcx , List < ProjectionPredicate < ' tcx > > > ,
106
+ generator_predicates : InternedSet < ' tcx , List < GeneratorPredicate < ' tcx > > > ,
107
107
poly_existential_predicates :
108
108
InternedSet < ' tcx , List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > > ,
109
109
predicate : InternedSet < ' tcx , PredicateInner < ' tcx > > ,
@@ -131,7 +131,7 @@ impl<'tcx> CtxtInterners<'tcx> {
131
131
type_list : Default :: default ( ) ,
132
132
substs : Default :: default ( ) ,
133
133
region : Default :: default ( ) ,
134
- projection_predicates : Default :: default ( ) ,
134
+ generator_predicates : Default :: default ( ) ,
135
135
poly_existential_predicates : Default :: default ( ) ,
136
136
canonical_var_infos : Default :: default ( ) ,
137
137
predicate : Default :: default ( ) ,
@@ -1657,7 +1657,7 @@ nop_lift! {const_allocation; &'a Allocation => &'tcx Allocation}
1657
1657
nop_lift ! { predicate; & ' a PredicateInner <' a> => & ' tcx PredicateInner <' tcx>}
1658
1658
1659
1659
nop_list_lift ! { type_list; Ty <' a> => Ty <' tcx>}
1660
- nop_list_lift ! { projection_predicates ; ProjectionPredicate <' a> => ProjectionPredicate <' tcx>}
1660
+ nop_list_lift ! { generator_predicates ; GeneratorPredicate <' a> => GeneratorPredicate <' tcx>}
1661
1661
nop_list_lift ! { poly_existential_predicates; ty:: Binder <' a, ExistentialPredicate <' a>> => ty:: Binder <' tcx, ExistentialPredicate <' tcx>>}
1662
1662
nop_list_lift ! { predicates; Predicate <' a> => Predicate <' tcx>}
1663
1663
nop_list_lift ! { canonical_var_infos; CanonicalVarInfo <' a> => CanonicalVarInfo <' tcx>}
@@ -2119,7 +2119,7 @@ slice_interners!(
2119
2119
type_list: _intern_type_list( Ty <' tcx>) ,
2120
2120
substs: _intern_substs( GenericArg <' tcx>) ,
2121
2121
canonical_var_infos: _intern_canonical_var_infos( CanonicalVarInfo <' tcx>) ,
2122
- projection_predicates : _intern_projection_predicates ( ProjectionPredicate <' tcx>) ,
2122
+ generator_predicates : _intern_generator_predicates ( GeneratorPredicate <' tcx>) ,
2123
2123
poly_existential_predicates:
2124
2124
_intern_poly_existential_predicates( ty:: Binder <' tcx, ExistentialPredicate <' tcx>>) ,
2125
2125
predicates: _intern_predicates( Predicate <' tcx>) ,
@@ -2517,14 +2517,14 @@ impl<'tcx> TyCtxt<'tcx> {
2517
2517
Place { local : place. local , projection : self . intern_place_elems ( & projection) }
2518
2518
}
2519
2519
2520
- pub fn intern_projection_predicates (
2520
+ pub fn intern_generator_predicates (
2521
2521
self ,
2522
- predicates : & [ ProjectionPredicate < ' tcx > ] ,
2523
- ) -> & ' tcx List < ProjectionPredicate < ' tcx > > {
2522
+ predicates : & [ GeneratorPredicate < ' tcx > ] ,
2523
+ ) -> & ' tcx List < GeneratorPredicate < ' tcx > > {
2524
2524
if predicates. is_empty ( ) {
2525
2525
List :: empty ( )
2526
2526
} else {
2527
- self . _intern_projection_predicates ( predicates)
2527
+ self . _intern_generator_predicates ( predicates)
2528
2528
}
2529
2529
}
2530
2530
@@ -2602,13 +2602,13 @@ impl<'tcx> TyCtxt<'tcx> {
2602
2602
} )
2603
2603
}
2604
2604
2605
- pub fn mk_projection_predicates <
2606
- I : InternAs < [ ProjectionPredicate < ' tcx > ] , & ' tcx List < ProjectionPredicate < ' tcx > > > ,
2605
+ pub fn mk_generator_predicates <
2606
+ I : InternAs < [ GeneratorPredicate < ' tcx > ] , & ' tcx List < GeneratorPredicate < ' tcx > > > ,
2607
2607
> (
2608
2608
self ,
2609
2609
iter : I ,
2610
2610
) -> I :: Output {
2611
- iter. intern_with ( |xs| self . intern_projection_predicates ( xs) )
2611
+ iter. intern_with ( |xs| self . intern_generator_predicates ( xs) )
2612
2612
}
2613
2613
2614
2614
pub fn mk_poly_existential_predicates <
0 commit comments