@@ -492,7 +492,7 @@ pub fn noop_visit_ty<T: MutVisitor>(ty: &mut P<Ty>, vis: &mut T) {
492492 TyKind :: Slice ( ty) => vis. visit_ty ( ty) ,
493493 TyKind :: Ptr ( mt) => vis. visit_mt ( mt) ,
494494 TyKind :: Ref ( lt, mt) => {
495- visit_opt ( lt, |lt| noop_visit_lifetime ( lt, vis ) ) ;
495+ visit_opt ( lt, |lt| vis . visit_lifetime ( lt) ) ;
496496 vis. visit_mt ( mt) ;
497497 }
498498 TyKind :: BareFn ( bft) => {
@@ -962,7 +962,7 @@ pub fn noop_flat_map_generic_param<T: MutVisitor>(
962962 vis. visit_id ( id) ;
963963 visit_attrs ( attrs, vis) ;
964964 vis. visit_ident ( ident) ;
965- visit_vec ( bounds, |bound| noop_visit_param_bound ( bound, vis ) ) ;
965+ visit_vec ( bounds, |bound| vis . visit_param_bound ( bound, BoundKind :: Bound ) ) ;
966966 match kind {
967967 GenericParamKind :: Lifetime => { }
968968 GenericParamKind :: Type { default } => {
@@ -1020,7 +1020,7 @@ fn noop_visit_where_predicate<T: MutVisitor>(pred: &mut WherePredicate, vis: &mu
10201020 }
10211021 WherePredicate :: RegionPredicate ( rp) => {
10221022 let WhereRegionPredicate { span, lifetime, bounds } = rp;
1023- noop_visit_lifetime ( lifetime, vis ) ;
1023+ vis . visit_lifetime ( lifetime) ;
10241024 visit_vec ( bounds, |bound| vis. visit_param_bound ( bound, BoundKind :: Bound ) ) ;
10251025 vis. visit_span ( span) ;
10261026 }
0 commit comments