Undefined lints scoped under rustc
don't result in lint unknown-lints getting emitted (unless -Zunstable-options
is passed)
#138788
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While undefined "unscoped" lints lead to the compiler emitting the warn-by-default lint unknown-lints
the same doesn't happen for undefined lints scoped under
rustc
:It would be beneficial if rustc would emit
unknown_lints
in these cases.Built-in tools like
rustfmt
andclippy
or tools defined viaregister_tool
are responsible for dealing with undefined lints themselves. However, the ~~tool modules~ lint scoperustc
is owned by rustc and should therefore do the checking.The text was updated successfully, but these errors were encountered: