@@ -17,10 +17,10 @@ use crate::ty::TyKind::*;
1717use crate :: ty:: {
1818 self , AdtDef , AdtKind , Binder , BindingMode , BoundVar , CanonicalPolyFnSig ,
1919 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 ,
2424} ;
2525use rustc_ast as ast;
2626use rustc_attr as attr;
@@ -103,7 +103,7 @@ pub struct CtxtInterners<'tcx> {
103103 substs : InternedSet < ' tcx , InternalSubsts < ' tcx > > ,
104104 canonical_var_infos : InternedSet < ' tcx , List < CanonicalVarInfo < ' tcx > > > ,
105105 region : InternedSet < ' tcx , RegionKind > ,
106- projection_predicates : InternedSet < ' tcx , List < ProjectionPredicate < ' tcx > > > ,
106+ generator_predicates : InternedSet < ' tcx , List < GeneratorPredicate < ' tcx > > > ,
107107 poly_existential_predicates :
108108 InternedSet < ' tcx , List < ty:: Binder < ' tcx , ExistentialPredicate < ' tcx > > > > ,
109109 predicate : InternedSet < ' tcx , PredicateInner < ' tcx > > ,
@@ -131,7 +131,7 @@ impl<'tcx> CtxtInterners<'tcx> {
131131 type_list : Default :: default ( ) ,
132132 substs : Default :: default ( ) ,
133133 region : Default :: default ( ) ,
134- projection_predicates : Default :: default ( ) ,
134+ generator_predicates : Default :: default ( ) ,
135135 poly_existential_predicates : Default :: default ( ) ,
136136 canonical_var_infos : Default :: default ( ) ,
137137 predicate : Default :: default ( ) ,
@@ -1657,7 +1657,7 @@ nop_lift! {const_allocation; &'a Allocation => &'tcx Allocation}
16571657nop_lift ! { predicate; & ' a PredicateInner <' a> => & ' tcx PredicateInner <' tcx>}
16581658
16591659nop_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>}
16611661nop_list_lift ! { poly_existential_predicates; ty:: Binder <' a, ExistentialPredicate <' a>> => ty:: Binder <' tcx, ExistentialPredicate <' tcx>>}
16621662nop_list_lift ! { predicates; Predicate <' a> => Predicate <' tcx>}
16631663nop_list_lift ! { canonical_var_infos; CanonicalVarInfo <' a> => CanonicalVarInfo <' tcx>}
@@ -2119,7 +2119,7 @@ slice_interners!(
21192119 type_list: _intern_type_list( Ty <' tcx>) ,
21202120 substs: _intern_substs( GenericArg <' tcx>) ,
21212121 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>) ,
21232123 poly_existential_predicates:
21242124 _intern_poly_existential_predicates( ty:: Binder <' tcx, ExistentialPredicate <' tcx>>) ,
21252125 predicates: _intern_predicates( Predicate <' tcx>) ,
@@ -2517,14 +2517,14 @@ impl<'tcx> TyCtxt<'tcx> {
25172517 Place { local : place. local , projection : self . intern_place_elems ( & projection) }
25182518 }
25192519
2520- pub fn intern_projection_predicates (
2520+ pub fn intern_generator_predicates (
25212521 self ,
2522- predicates : & [ ProjectionPredicate < ' tcx > ] ,
2523- ) -> & ' tcx List < ProjectionPredicate < ' tcx > > {
2522+ predicates : & [ GeneratorPredicate < ' tcx > ] ,
2523+ ) -> & ' tcx List < GeneratorPredicate < ' tcx > > {
25242524 if predicates. is_empty ( ) {
25252525 List :: empty ( )
25262526 } else {
2527- self . _intern_projection_predicates ( predicates)
2527+ self . _intern_generator_predicates ( predicates)
25282528 }
25292529 }
25302530
@@ -2602,13 +2602,13 @@ impl<'tcx> TyCtxt<'tcx> {
26022602 } )
26032603 }
26042604
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 > > > ,
26072607 > (
26082608 self ,
26092609 iter : I ,
26102610 ) -> I :: Output {
2611- iter. intern_with ( |xs| self . intern_projection_predicates ( xs) )
2611+ iter. intern_with ( |xs| self . intern_generator_predicates ( xs) )
26122612 }
26132613
26142614 pub fn mk_poly_existential_predicates <
0 commit comments