diff options
| author | bors <bors@rust-lang.org> | 2017-12-01 03:25:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-01 03:25:54 +0000 |
| commit | 804b15be82ea668d943fab70195eb57a2f942d4b (patch) | |
| tree | 39e40f11e8616391f33eaafe14ad61a80a78d00e /src/libsyntax/util | |
| parent | d8a60c9611399b1b5c9c703b975af4724b432b0d (diff) | |
| parent | f7f69512c8741e81714252d481a4cf6936f2c65f (diff) | |
| download | rust-804b15be82ea668d943fab70195eb57a2f942d4b.tar.gz rust-804b15be82ea668d943fab70195eb57a2f942d4b.zip | |
Auto merge of #45846 - pietroalbini:use-nested-groups, r=petrochenkov
Add nested groups in imports This PR adds support for nested groups in imports (rust-lang/rfcs#2128, tracking issue #44494). r? @petrochenkov
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 0a5d0c2e7fe..ac5642e53cf 100644 --- a/src/libsyntax/util/node_count.rs +++ b/src/libsyntax/util/node_count.rs @@ -133,9 +133,9 @@ impl<'ast> Visitor<'ast> for NodeCounter { self.count += 1; walk_path(self, path) } - fn visit_path_list_item(&mut self, prefix: &Path, item: &PathListItem) { + fn visit_use_tree(&mut self, use_tree: &UseTree, id: NodeId, _nested: bool) { self.count += 1; - walk_path_list_item(self, prefix, item) + walk_use_tree(self, use_tree, id) } fn visit_path_parameters(&mut self, path_span: Span, path_parameters: &PathParameters) { self.count += 1; |
