unused_qualifications
lint confused by pub use Foo::*
#138770
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-unused_qualifications
Lint: unused_qualifications
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried enabling
unused_qualifications
for the compiler itself. It mostly works, but gets confused bypub use Foo::*
forms.Here's an example from
compiler/rustc_ast/src/token.rs
, which has this:followed by this:
It emits a bogus error for every variant of the enum. Here's one example:
There is no qualification present, and the
help
suggestion is nonsense.I was unable to reproduce this behaviour in a standalone test case.
The text was updated successfully, but these errors were encountered: