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 /compiler/rustc_parse/src | |
| 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 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 767fb9378be..84c63219920 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -1012,7 +1012,7 @@ impl<'a> Parser<'a> { prefix.span = lo.to(self.prev_token.span); } - UseTreeKind::Simple(self.parse_rename()?, DUMMY_NODE_ID, DUMMY_NODE_ID) + UseTreeKind::Simple(self.parse_rename()?) } }; |
