"unused imports" lints run too eagerly #48244
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Ever since @alexcrichton refactored lints (which was awesome!) to print eagerly, the unused import lints have gotten pretty annoying. Example output from a recent compilation session:
Note that I got an error about the import not being valid -- and then a lint that my invalid path is not used! Here is a similar problem, in a standalone test case:
As of now, I get this output (in stable, but also nightly):
I have also frequently seen it happen that the unused import lint comes first, which is extra annoying.
The text was updated successfully, but these errors were encountered: