Skip to content

readme suggests nonexisting lint  #3210

Closed
@matthiaskrgr

Description

@matthiaskrgr

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions