Fix some totally useless suggestions
This commit is contained in:
parent
d2404d6dca
commit
050bc95ce2
3 changed files with 3 additions and 13 deletions
|
@ -896,7 +896,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
|
|||
let resolutions = resolutions.as_ref().into_iter().flat_map(|r| r.iter());
|
||||
let names = resolutions
|
||||
.filter_map(|(BindingKey { ident: i, .. }, resolution)| {
|
||||
if *i == ident {
|
||||
if i.name == ident.name {
|
||||
return None;
|
||||
} // Never suggest the same name
|
||||
match *resolution.borrow() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue