resolve: Do not suggest imports from the same module in which we are resolving

This commit is contained in:
Vadim Petrochenkov 2020-05-30 20:11:14 +03:00
parent 52f1847bca
commit 21fca7aae7
3 changed files with 6 additions and 11 deletions

View file

@ -3,11 +3,6 @@ error[E0574]: expected struct, variant or union type, found type parameter `T`
|
LL | let t = T { i: 0 };
| ^ not a struct, variant or union type
|
help: consider importing this struct instead
|
LL | use T;
|
error[E0599]: no function or associated item named `f` found for type parameter `Foo` in the current scope
--> $DIR/lexical-scopes.rs:10:10

View file

@ -27,10 +27,6 @@ LL | pass_dollar_crate!();
| ^^^^^^^^^^^^^^^^^^^^^ not found in `$crate`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this struct
|
LL | use ItemUse;
|
error: aborting due to 4 previous errors