@@ -21,7 +21,7 @@ use rustc_middle::traits::EvaluationResult;
21
21
use rustc_middle:: ty:: adjustment:: { Adjust , Adjustment } ;
22
22
use rustc_middle:: ty:: layout:: ValidityRequirement ;
23
23
use rustc_middle:: ty:: {
24
- self , AdtDef , AliasTy , AssocItem , AssocTag , Binder , BoundRegion , FnSig , GenericArg , GenericArgKind , GenericArgsRef ,
24
+ self , AdtDef , AliasTy , AssocItem , AssocTag , Binder , BoundRegion , BoundVarIndexKind , FnSig , GenericArg , GenericArgKind , GenericArgsRef ,
25
25
GenericParamDefKind , IntTy , Region , RegionKind , TraitRef , Ty , TyCtxt , TypeSuperVisitable , TypeVisitable ,
26
26
TypeVisitableExt , TypeVisitor , UintTy , Upcast , VariantDef , VariantDiscr ,
27
27
} ;
@@ -826,7 +826,7 @@ pub fn for_each_top_level_late_bound_region<B>(
826
826
impl < ' tcx , B , F : FnMut ( BoundRegion ) -> ControlFlow < B > > TypeVisitor < TyCtxt < ' tcx > > for V < F > {
827
827
type Result = ControlFlow < B > ;
828
828
fn visit_region ( & mut self , r : Region < ' tcx > ) -> Self :: Result {
829
- if let RegionKind :: ReBound ( idx, bound) = r. kind ( )
829
+ if let RegionKind :: ReBound ( BoundVarIndexKind :: Bound ( idx) , bound) = r. kind ( )
830
830
&& idx. as_u32 ( ) == self . index
831
831
{
832
832
( self . f ) ( bound)
0 commit comments