diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-12-01 18:51:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-12-01 18:51:20 +0300 |
| commit | b32a4edb2078ca61ebcd9bad993905873f4a990a (patch) | |
| tree | 50acd792b559138cc1c306259b5886d3ce1004bb /src/tools/rustfmt | |
| parent | 1f259ae6799e7e0a08e5b84fc5686e404b17eef0 (diff) | |
| download | rust-b32a4edb2078ca61ebcd9bad993905873f4a990a.tar.gz rust-b32a4edb2078ca61ebcd9bad993905873f4a990a.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.
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/imports.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/imports.rs b/src/tools/rustfmt/src/imports.rs index b6530c69243..d9dc8d004af 100644 --- a/src/tools/rustfmt/src/imports.rs +++ b/src/tools/rustfmt/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`. |
