@@ -21,7 +21,7 @@ use rustc_middle::traits::EvaluationResult;
2121use rustc_middle:: ty:: adjustment:: { Adjust , Adjustment } ;
2222use rustc_middle:: ty:: layout:: ValidityRequirement ;
2323use 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 ,
2525 GenericParamDefKind , IntTy , Region , RegionKind , TraitRef , Ty , TyCtxt , TypeSuperVisitable , TypeVisitable ,
2626 TypeVisitableExt , TypeVisitor , UintTy , Upcast , VariantDef , VariantDiscr ,
2727} ;
@@ -826,7 +826,7 @@ pub fn for_each_top_level_late_bound_region<B>(
826826 impl < ' tcx , B , F : FnMut ( BoundRegion ) -> ControlFlow < B > > TypeVisitor < TyCtxt < ' tcx > > for V < F > {
827827 type Result = ControlFlow < B > ;
828828 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 ( )
830830 && idx. as_u32 ( ) == self . index
831831 {
832832 ( self . f ) ( bound)
0 commit comments