@@ -631,7 +631,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
631631 span,
632632 } ,
633633 |this| {
634- this. visit_generic_param_slice ( & bare_fn. generic_params , false ) ;
634+ this. visit_generic_params ( & bare_fn. generic_params , false ) ;
635635 this. with_lifetime_rib (
636636 LifetimeRibKind :: AnonymousPassThrough ( ty. id , false ) ,
637637 |this| walk_list ! ( this, visit_param, & bare_fn. decl. inputs) ,
@@ -662,7 +662,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
662662 span,
663663 } ,
664664 |this| {
665- this. visit_generic_param_slice ( & tref. bound_generic_params , false ) ;
665+ this. visit_generic_params ( & tref. bound_generic_params , false ) ;
666666 this. smart_resolve_path (
667667 tref. trait_ref . ref_id ,
668668 None ,
@@ -833,7 +833,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
833833 }
834834
835835 fn visit_generics ( & mut self , generics : & ' ast Generics ) {
836- self . visit_generic_param_slice (
836+ self . visit_generic_params (
837837 & generics. params ,
838838 self . diagnostic_metadata . current_self_item . is_some ( ) ,
839839 ) ;
@@ -941,7 +941,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
941941 span,
942942 } ,
943943 |this| {
944- this. visit_generic_param_slice ( & bound_generic_params, false ) ;
944+ this. visit_generic_params ( & bound_generic_params, false ) ;
945945 this. visit_ty ( bounded_ty) ;
946946 for bound in bounds {
947947 this. visit_param_bound ( bound, BoundKind :: Bound )
@@ -1116,7 +1116,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
11161116 }
11171117 }
11181118
1119- fn visit_generic_param_slice ( & mut self , params : & ' ast [ GenericParam ] , add_self_upper : bool ) {
1119+ fn visit_generic_params ( & mut self , params : & ' ast [ GenericParam ] , add_self_upper : bool ) {
11201120 // For type parameter defaults, we have to ban access
11211121 // to following type parameters, as the InternalSubsts can only
11221122 // provide previous type parameters as they're built. We
0 commit comments