Skip to content

Activate rustc deprecated_in_future lint by default in clippy #11323

Open

Description

Description

rustc has an allow-by-default lint deprecated_in_future, which does the same thing as deprecated, except that the lint is allow-by-default instead of warn or higher.

By being allow-by-default makes sense for rustc, as the intention is not to warn unnecessarily when it's not 100% required; but I think that making the lint warn-by-default with clippy would make a lot of sense, as clippy is by nature more relaxed on things that it lints on, and linting on deprecated in future usage would be something that clippy users might want.

Related to #10997 where we are trying to lint on deprecated in future items. cc @Centri3

Version

No response

Additional Labels

@rustbot label +C-enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions