-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
clippy 0.0.212 (125907a 2018-09-17)
The readme states
"
For this to work you have to use Clippy on the nightly toolchain: cargo +nightly clippy. If you
want to use Clippy with the stable toolchain, you can stick to the old unscoped method to
enable/disable Clippy lints until tool_lints are stable:
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]"
However there is no clippy_lintlint that could be suppressed/allowed.
warning: unknown lint: `clippy_lint`
--> src/lib.rs:16:45
|
16 | #![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
| ^^^^^^^^^^^
|
= note: #[warn(unknown_lints)] on by default
EDIT: repro sample:
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
#![cfg_attr(feature = "cargo-clippy", warn(if_not_else))]
fn main() {
println!("Hello, world!");
}cc @flip1995
Metadata
Metadata
Assignees
Labels
No labels