Rename visit_generic_param{_slice => s}
This commit is contained in:
parent
afaa9854fa
commit
cae3c78664
1 changed files with 5 additions and 5 deletions
|
@ -631,7 +631,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
|this| {
|
|this| {
|
||||||
this.visit_generic_param_slice(&bare_fn.generic_params, false);
|
this.visit_generic_params(&bare_fn.generic_params, false);
|
||||||
this.with_lifetime_rib(
|
this.with_lifetime_rib(
|
||||||
LifetimeRibKind::AnonymousPassThrough(ty.id, false),
|
LifetimeRibKind::AnonymousPassThrough(ty.id, false),
|
||||||
|this| walk_list!(this, visit_param, &bare_fn.decl.inputs),
|
|this| walk_list!(this, visit_param, &bare_fn.decl.inputs),
|
||||||
|
@ -662,7 +662,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
|this| {
|
|this| {
|
||||||
this.visit_generic_param_slice(&tref.bound_generic_params, false);
|
this.visit_generic_params(&tref.bound_generic_params, false);
|
||||||
this.smart_resolve_path(
|
this.smart_resolve_path(
|
||||||
tref.trait_ref.ref_id,
|
tref.trait_ref.ref_id,
|
||||||
None,
|
None,
|
||||||
|
@ -833,7 +833,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn visit_generics(&mut self, generics: &'ast Generics) {
|
fn visit_generics(&mut self, generics: &'ast Generics) {
|
||||||
self.visit_generic_param_slice(
|
self.visit_generic_params(
|
||||||
&generics.params,
|
&generics.params,
|
||||||
self.diagnostic_metadata.current_self_item.is_some(),
|
self.diagnostic_metadata.current_self_item.is_some(),
|
||||||
);
|
);
|
||||||
|
@ -941,7 +941,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
|this| {
|
|this| {
|
||||||
this.visit_generic_param_slice(&bound_generic_params, false);
|
this.visit_generic_params(&bound_generic_params, false);
|
||||||
this.visit_ty(bounded_ty);
|
this.visit_ty(bounded_ty);
|
||||||
for bound in bounds {
|
for bound in bounds {
|
||||||
this.visit_param_bound(bound, BoundKind::Bound)
|
this.visit_param_bound(bound, BoundKind::Bound)
|
||||||
|
@ -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
|
// For type parameter defaults, we have to ban access
|
||||||
// to following type parameters, as the InternalSubsts can only
|
// to following type parameters, as the InternalSubsts can only
|
||||||
// provide previous type parameters as they're built. We
|
// provide previous type parameters as they're built. We
|
||||||
|
|
Loading…
Add table
Reference in a new issue