about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-12-01 18:51:20 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-12-01 18:51:20 +0300
commit46f0b38eb5f4965bd3230ceeba4a3ed7d0e5f68e (patch)
tree436bf87324fcd5defe9b31ac9b4d32ae8d3434c3
parentc7e4abd44469d20fad3033608d7ece501609ed34 (diff)
downloadrust-46f0b38eb5f4965bd3230ceeba4a3ed7d0e5f68e.tar.gz
rust-46f0b38eb5f4965bd3230ceeba4a3ed7d0e5f68e.zip
rustc_ast_lowering: Stop lowering imports into multiple items
Lower them into a single item with multiple resolutions instead.
This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
-rw-r--r--src/imports.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports.rs b/src/imports.rs
index b6530c69243..d9dc8d004af 100644
--- a/src/imports.rs
+++ b/src/imports.rs
@@ -490,7 +490,7 @@ impl UseTree {
                 );
                 result.path.push(UseSegment { kind, version });
             }
-            UseTreeKind::Simple(ref rename, ..) => {
+            UseTreeKind::Simple(ref rename) => {
                 // If the path has leading double colons and is composed of only 2 segments, then we
                 // bypass the call to path_to_imported_ident which would get only the ident and
                 // lose the path root, e.g., `that` in `::that`.