Closed
Description
$ rustc -W unknown_blah ~/src/test-rustdoc/test.rs
error[E0602]: unknown lint: `unknown_blah`
|
= note: requested on the command line with `-W unknown_blah`
Not sure if this is actually a bug? cc @Mark-Simulacrum
$ rustc -W unknown_blah ~/src/test-rustdoc/test.rs
error[E0602]: unknown lint: `unknown_blah`
|
= note: requested on the command line with `-W unknown_blah`
Not sure if this is actually a bug? cc @Mark-Simulacrum
Activity
Mark-Simulacrum commentedon Jul 24, 2020
We should at least give a brief blurb about how to silence this. (Does -Wunknown-lints help?)
jyn514 commentedon Feb 9, 2021
It does not.
tmandry commentedon Feb 9, 2021
Copying what I said in #81906:
djkoloski commentedon Feb 24, 2022
#94274 fixes the issue of
-Aunknown-lints
not applying to subsequent CLI arguments.Herschel commentedon May 22, 2022
I ran into this when adopting Embark's workaround for using
.cargo/config.toml
to allow/disable lints for an entire workspace viarustflags
. I'd like to-Aunknown_lints
here and then squelch certain nightly clippy lints, but subsequent-Afoobar
still give me errors.This makes it sound like the above should work correctly, but I guess I'm mistaken? rustc 1.63.0-nightly (9257f5a 2022-05-21)
ComputerDruid commentedon May 23, 2022
I think #94274 only helps with unstable lints, not unknown ones, unfortunately.
[lints]
table RFC 3389 rust-lang/cargo#12115