@@ -631,7 +631,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
631
631
span,
632
632
} ,
633
633
|this| {
634
- this. visit_generic_param_slice ( & bare_fn. generic_params , false ) ;
634
+ this. visit_generic_params ( & bare_fn. generic_params , false ) ;
635
635
this. with_lifetime_rib (
636
636
LifetimeRibKind :: AnonymousPassThrough ( ty. id , false ) ,
637
637
|this| walk_list ! ( this, visit_param, & bare_fn. decl. inputs) ,
@@ -662,7 +662,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
662
662
span,
663
663
} ,
664
664
|this| {
665
- this. visit_generic_param_slice ( & tref. bound_generic_params , false ) ;
665
+ this. visit_generic_params ( & tref. bound_generic_params , false ) ;
666
666
this. smart_resolve_path (
667
667
tref. trait_ref . ref_id ,
668
668
None ,
@@ -833,7 +833,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
833
833
}
834
834
835
835
fn visit_generics ( & mut self , generics : & ' ast Generics ) {
836
- self . visit_generic_param_slice (
836
+ self . visit_generic_params (
837
837
& generics. params ,
838
838
self . diagnostic_metadata . current_self_item . is_some ( ) ,
839
839
) ;
@@ -941,7 +941,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
941
941
span,
942
942
} ,
943
943
|this| {
944
- this. visit_generic_param_slice ( & bound_generic_params, false ) ;
944
+ this. visit_generic_params ( & bound_generic_params, false ) ;
945
945
this. visit_ty ( bounded_ty) ;
946
946
for bound in bounds {
947
947
this. visit_param_bound ( bound, BoundKind :: Bound )
@@ -1116,7 +1116,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
1116
1116
}
1117
1117
}
1118
1118
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 ) {
1120
1120
// For type parameter defaults, we have to ban access
1121
1121
// to following type parameters, as the InternalSubsts can only
1122
1122
// provide previous type parameters as they're built. We
0 commit comments