diff options
| author | bors <bors@rust-lang.org> | 2019-02-07 01:41:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-07 01:41:14 +0000 |
| commit | 1efdda10cdde386ea3e470ba2b482fdc73c12001 (patch) | |
| tree | 5e6afa3b847faec789606ee039d1b2523c7ac357 /src/libsyntax/util/node_count.rs | |
| parent | ff9158c1f8c5aee77b9b3b399c4adabeb3d0716c (diff) | |
| parent | 7bb082d27fe472f52b103de0ae9fc6fa7e6546cc (diff) | |
| download | rust-1efdda10cdde386ea3e470ba2b482fdc73c12001.tar.gz rust-1efdda10cdde386ea3e470ba2b482fdc73c12001.zip | |
Auto merge of #58125 - taiki-e:libsyntax-2018, r=Centril
libsyntax => 2018 Transitions `libsyntax` to Rust 2018; cc #58099 r? @Centril
Diffstat (limited to 'src/libsyntax/util/node_count.rs')
| -rw-r--r-- | src/libsyntax/util/node_count.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/util/node_count.rs b/src/libsyntax/util/node_count.rs index 7dd213ae38b..521edac8f5f 100644 --- a/src/libsyntax/util/node_count.rs +++ b/src/libsyntax/util/node_count.rs @@ -1,7 +1,7 @@ // Simply gives a rought count of the number of nodes in an AST. -use visit::*; -use ast::*; +use crate::visit::*; +use crate::ast::*; use syntax_pos::Span; pub struct NodeCounter { @@ -69,7 +69,7 @@ impl<'ast> Visitor<'ast> for NodeCounter { self.count += 1; walk_generics(self, g) } - fn visit_fn(&mut self, fk: FnKind, fd: &FnDecl, s: Span, _: NodeId) { + fn visit_fn(&mut self, fk: FnKind<'_>, fd: &FnDecl, s: Span, _: NodeId) { self.count += 1; walk_fn(self, fk, fd, s) } |
