Skip to content

Commit 46f0b38

Browse files
committed
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.
1 parent c7e4abd commit 46f0b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl UseTree {
490490
);
491491
result.path.push(UseSegment { kind, version });
492492
}
493-
UseTreeKind::Simple(ref rename, ..) => {
493+
UseTreeKind::Simple(ref rename) => {
494494
// If the path has leading double colons and is composed of only 2 segments, then we
495495
// bypass the call to path_to_imported_ident which would get only the ident and
496496
// lose the path root, e.g., `that` in `::that`.

0 commit comments

Comments
 (0)