-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"E0432 unresolved import" on the same line should emit one diagnostic #53359
Comments
@estebank I would like to take this on if you are not planning to solve it yourself. It may take me sometime to solve it though. BTW, how you are planning to show the diagnostic message. |
Go ahead!
That it's fine.
My thinking is that it should look similar to what it already does. The approach I'd take would be to just collect all of the unresolved imports for a single |
@estebank I have created a basic structure to fix the issue, now I am stuck in a situation where I need to show help like |
Now this type of output we are getting
instead of
|
#53359: putting multiple unresolved import on single line r? @estebank Here is WIP implementation of #53359 this PR have clubbed multiple unresolved imports into a single line. I think still two things need to improve like giving specific `label message` for each span of multi_span(how we can do this?) and second we are getting a warning while compiling, stating something like `E0432` have been passed before.
I think now this can be closed! |
Currently when writing
use foo::{bar, baz, qux}
whenfoo
exists but none ofbar
,baz
andqux
do, we emit one diagnostic per unresolved import. We should collect these onto a single multispan error.The text was updated successfully, but these errors were encountered: