Skip to content

Use clippy::msrv instead of allow(clippy::incompatible_msrv) when possible #66

Description

@Jarcho

The main clippy attribute for controlling the target MSRV is the clippy::msrv attribute. This is used by many lints to either improve the suggestion made or expand the cases that can be linted. Support for this was added in 1.50 which predates the incompatible_msrv lint by quite a bit.

The attribute has the form #[clippy = "1.x.y"] with the patch version being optional. It should function properly anywhere attributes are supported.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions