Open clayrab opened 10 months ago
Adding this section to Cargo.toml produces no errors or warnings:
For me it produces this warning:
warning[E0602]: unknown lint: `clippy::asdf`
|
= help: did you mean: `clippy::all`
= note: requested on the command line with `-D clippy::asdf`
= note: `#[warn(unknown_lints)]` on by default
Though only if invoked with clippy. With just cargo check
it doesn't, because that directly invokes rustc and clippy doesn't get a chance to register its lints. And I presume it avoids linting if a tool doesn't register any lints because then you'd get an unknown lint warning even for existing lints if run with cargo check
.
I'm trying to do this:
That looks like it should work
It works correctly for me on current stable version of clippy.
Suggest closing.
error[E0602]: unknown lint: `clippy::asdf`
|
= help: did you mean: `clippy::all`
= note: requested on the command line with `-D clippy::asdf`
= note: `-D unknown-lints` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unknown_lints)]`
Summary
Adding this section to Cargo.toml produces no errors or warnings:
I'm trying to do this:
I believe this isn't supported, but can't be sure becuase it produces no errors.
The same setting in clippy.toml blows up, which is what I'd expect to see if it's done via Cargo.toml as well:
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
No response
Additional Labels
No response