Skip to content

Commit

Permalink
Rename visit_generic_param{_slice => s}
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Jun 5, 2022
1 parent afaa985 commit cae3c78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compiler/rustc_resolve/src/late.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
span,
},
|this| {
this.visit_generic_param_slice(&bare_fn.generic_params, false);
this.visit_generic_params(&bare_fn.generic_params, false);
this.with_lifetime_rib(
LifetimeRibKind::AnonymousPassThrough(ty.id, false),
|this| walk_list!(this, visit_param, &bare_fn.decl.inputs),
Expand Down Expand Up @@ -662,7 +662,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
span,
},
|this| {
this.visit_generic_param_slice(&tref.bound_generic_params, false);
this.visit_generic_params(&tref.bound_generic_params, false);
this.smart_resolve_path(
tref.trait_ref.ref_id,
None,
Expand Down Expand Up @@ -833,7 +833,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
}

fn visit_generics(&mut self, generics: &'ast Generics) {
self.visit_generic_param_slice(
self.visit_generic_params(
&generics.params,
self.diagnostic_metadata.current_self_item.is_some(),
);
Expand Down Expand Up @@ -941,7 +941,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
span,
},
|this| {
this.visit_generic_param_slice(&bound_generic_params, false);
this.visit_generic_params(&bound_generic_params, false);
this.visit_ty(bounded_ty);
for bound in bounds {
this.visit_param_bound(bound, BoundKind::Bound)
Expand Down Expand Up @@ -1116,7 +1116,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
}
}

fn visit_generic_param_slice(&mut self, params: &'ast [GenericParam], add_self_upper: bool) {
fn visit_generic_params(&mut self, params: &'ast [GenericParam], add_self_upper: bool) {
// For type parameter defaults, we have to ban access
// to following type parameters, as the InternalSubsts can only
// provide previous type parameters as they're built. We
Expand Down

0 comments on commit cae3c78

Please sign in to comment.