diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-12 07:51:31 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-06-14 07:40:32 +0000 |
| commit | 0644aba0b3f5e8c8e71f4fcfdf8841ba62034565 (patch) | |
| tree | d72122a139b9547cd08fe0cd3c13651db2727437 /src/libsyntax/ext | |
| parent | 683e480ffe0ea355d038b4e9c0efeb9c1475a2d3 (diff) | |
| download | rust-0644aba0b3f5e8c8e71f4fcfdf8841ba62034565.tar.gz rust-0644aba0b3f5e8c8e71f4fcfdf8841ba62034565.zip | |
Remove the type parameter from `syntax::visit::Visitor`
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index f803b942b8b..ff2683468e0 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -573,7 +573,7 @@ struct PatIdentFinder { ident_accumulator: Vec<ast::Ident> } -impl<'v> Visitor<'v> for PatIdentFinder { +impl Visitor for PatIdentFinder { fn visit_pat(&mut self, pattern: &ast::Pat) { match *pattern { ast::Pat { id: _, node: PatKind::Ident(_, ref path1, ref inner), span: _ } => { @@ -1226,7 +1226,7 @@ mod tests { path_accumulator: Vec<ast::Path> , } - impl<'v> Visitor<'v> for PathExprFinderContext { + impl Visitor for PathExprFinderContext { fn visit_expr(&mut self, expr: &ast::Expr) { if let ast::ExprKind::Path(None, ref p) = expr.node { self.path_accumulator.push(p.clone()); @@ -1248,7 +1248,7 @@ mod tests { ident_accumulator: Vec<ast::Ident> } - impl<'v> Visitor<'v> for IdentFinder { + impl Visitor for IdentFinder { fn visit_ident(&mut self, _: codemap::Span, id: ast::Ident){ self.ident_accumulator.push(id); } |
