diff options
| author | varkor <github@varkor.com> | 2018-05-27 20:37:52 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-06-20 12:21:52 +0100 |
| commit | 8bccfe7a526bb03fd656a194a03f6850e16bc4c6 (patch) | |
| tree | 99a08224e07890a26d9202361828b2a77e9ee841 /src/libsyntax | |
| parent | 3bcb006fd96763b24c34a8cf2abdf081d2e912b1 (diff) | |
| download | rust-8bccfe7a526bb03fd656a194a03f6850e16bc4c6.tar.gz rust-8bccfe7a526bb03fd656a194a03f6850e16bc4c6.zip | |
Refactor counting methods
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 3a81796bae4..b647dc7923e 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -492,12 +492,12 @@ pub fn walk_ty_param_bound<'a, V: Visitor<'a>>(visitor: &mut V, bound: &'a TyPar pub fn walk_generic_param<'a, V: Visitor<'a>>(visitor: &mut V, param: &'a GenericParam) { match param.kind { - GenericParamKind::Lifetime { ref bounds, ref lifetime, .. } => { + GenericParamKind::Lifetime { ref bounds, ref lifetime } => { visitor.visit_ident(param.ident); walk_list!(visitor, visit_lifetime, bounds); walk_list!(visitor, visit_attribute, param.attrs.iter()); } - GenericParamKind::Type { ref bounds, ref default, .. } => { + GenericParamKind::Type { ref bounds, ref default } => { visitor.visit_ident(t.ident); walk_list!(visitor, visit_ty_param_bound, bounds); walk_list!(visitor, visit_ty, default); |
