diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-03-19 03:54:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-04-06 11:50:49 +0300 |
| commit | b3b5ef186c1f9f57179ab1dc922f6c7f02fb9d8c (patch) | |
| tree | b1be4e0b78828bf22a53633640c69badda4be0fe /src/libsyntax/util | |
| parent | 62000c072e850f0a102db2b22e08b12d82e3c475 (diff) | |
| download | rust-b3b5ef186c1f9f57179ab1dc922f6c7f02fb9d8c.tar.gz rust-b3b5ef186c1f9f57179ab1dc922f6c7f02fb9d8c.zip | |
Remove more duplicated spans
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/node_count.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/node_count.rs b/src/libsyntax/util/node_count.rs index da238be85e0..d4c6b4b158b 100644 --- a/src/libsyntax/util/node_count.rs +++ b/src/libsyntax/util/node_count.rs @@ -27,9 +27,9 @@ impl NodeCounter { } impl<'ast> Visitor<'ast> for NodeCounter { - fn visit_ident(&mut self, span: Span, ident: Ident) { + fn visit_ident(&mut self, ident: Ident) { self.count += 1; - walk_ident(self, span, ident); + walk_ident(self, ident); } fn visit_mod(&mut self, m: &Mod, _s: Span, _a: &[Attribute], _n: NodeId) { self.count += 1; |
