diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2024-04-02 00:26:10 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2024-04-14 18:45:28 +0200 |
| commit | 13f76235b333f4b9c750be45839b488d7f5c8203 (patch) | |
| tree | 42289a05fb4042517ef2207473b478cdb5f67d9a /compiler/rustc_expand/src | |
| parent | 2ec337c19336845b371dcd6bc1369e6b34124afd (diff) | |
| download | rust-13f76235b333f4b9c750be45839b488d7f5c8203.tar.gz rust-13f76235b333f4b9c750be45839b488d7f5c8203.zip | |
store the span of the nested part of the use tree in the ast
Diffstat (limited to 'compiler/rustc_expand/src')
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index 6029caa965c..6de3a392e78 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -1190,8 +1190,8 @@ impl InvocationCollectorNode for P<ast::Item> { match &ut.kind { ast::UseTreeKind::Glob => {} ast::UseTreeKind::Simple(_) => idents.push(ut.ident()), - ast::UseTreeKind::Nested(nested) => { - for (ut, _) in nested { + ast::UseTreeKind::Nested { items, .. } => { + for (ut, _) in items { collect_use_tree_leaves(ut, idents); } } |
