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.
This commit is contained in:
parent
1f259ae679
commit
b32a4edb20
25 changed files with 79 additions and 198 deletions
|
@ -1264,7 +1264,7 @@ impl UnusedImportBraces {
|
|||
|
||||
// Trigger the lint if the nested item is a non-self single item
|
||||
let node_name = match items[0].0.kind {
|
||||
ast::UseTreeKind::Simple(rename, ..) => {
|
||||
ast::UseTreeKind::Simple(rename) => {
|
||||
let orig_ident = items[0].0.prefix.segments.last().unwrap().ident;
|
||||
if orig_ident.name == kw::SelfLower {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue