resolve: Not all imports have their own NodeId
This commit is contained in:
parent
2afca78a0b
commit
637bfe68a1
6 changed files with 143 additions and 105 deletions
|
@ -353,7 +353,7 @@ impl<'a> Resolver<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
ImportKind::ExternCrate { source, target } => {
|
||||
ImportKind::ExternCrate { source, target, .. } => {
|
||||
suggestion = Some(format!(
|
||||
"extern crate {} as {};",
|
||||
source.unwrap_or(target.name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue