diff options
| author | Michael Goulet <michael@errs.io> | 2022-12-27 07:17:22 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-12-27 07:17:22 +0000 |
| commit | 050bc95ce2b23b034d5f41e5c3a8c6e627dfd52a (patch) | |
| tree | 4180baff2703178aecbb13466e51d558b3c2608f /compiler/rustc_resolve | |
| parent | d2404d6dca59d34d5b9f0c66b425b08229f20f4b (diff) | |
| download | rust-050bc95ce2b23b034d5f41e5c3a8c6e627dfd52a.tar.gz rust-050bc95ce2b23b034d5f41e5c3a8c6e627dfd52a.zip | |
Fix some totally useless suggestions
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/imports.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs index d99c1cb6d3c..0a2a737e1a4 100644 --- a/compiler/rustc_resolve/src/imports.rs +++ b/compiler/rustc_resolve/src/imports.rs @@ -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() { |
