-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Rustc shows unnecessary big error when glob reexport failed #81413
Comments
Output on 1.38:
@rustbot label A-diagnostics A-resolve regression-from-stable-to-stable |
@SNCPlay42 why do you think it's a "regression-from-stable-to-stable"? IMO the output from |
The error is much shorter, and only points at the actual problem. The unused import warnings, of course, wouldn't be there if those imports were actually used. |
From those rollups, #64054 looks relevant. |
@SNCPlay42 ah, you are right, I've misread the output thinking that the warnings were errors too. |
I spent some time trying to debug this last week and I'm fairly sure #64054 is the PR that introduced this. I wasn't aware of that PR at the time but I spent a lot of time trying to understand what is "determinate" vs. "indeterminate" (which is unfortunately not documented) and I remember finding out that with glob import the import |
Assigning |
fix(resolve): report unresolved imports firstly Fixes rust-lang#81413 An easy fix, r? `@petrochenkov`
fix(resolve): report unresolved imports firstly Fixes rust-lang#81413 An easy fix, r? ``@petrochenkov``
I tried this code:
(play)
I expected to see an error that only says that "
doesnt_exist
is unresolved".But the error says that all uses of items from the module with glob import (
crate
in this case) are unresolved too:This may lead to extremely long and unreadable errors. The issue was originally found while developing
teloxide
where it caused 1500+ lines error.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: