Skip to content

option to only disable lint -> clippy::lint deprecation warnings #3159

Closed
@matthiaskrgr

Description

@matthiaskrgr

Some crates require to be compatible with stable.
They might have old-style clippy lint attributes.
Until the tool_lints features is available in stable, there will be a lot of

warning: lint name `if_not_else` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
  --> src/main.rs:16:52
   |
16 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, if_not_else, enum_glob_use, wrong_pub_self_convention))]
   |                                                    ^^^^^^^^^^^ help: change it to: `clippy::if_not_else`

spam, so it would be cool to have a way to disable the lint -> clippy::lint transition warning explicitly until tool_lints hits stable, unless I am missing something and there already is a way to do that?
renamed_and_removed_lints implies that removed/unknown lints is still warned about which we still want warnings about in this case I think?

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