Skip to content

-D warnings should deny warnings from lint renames #94500

Open
@daprilik

Description

@daprilik

Description

e.g: setting -W clippy::disallowed_type -D warnings when invoking clippy currently results in the following warning:

warning: lint `clippy::disallowed_type` has been renamed to `clippy::disallowed_types`
  |
  = note: requested on the command line with `-W clippy::disallowed_type`

...when this should be a hard error (due to the -D warnings)

Version

rustc 1.59.0 (9d1b2106e 2022-02-23)
binary: rustc
commit-hash: 9d1b2106e23b1abd32fce1f17267604a5102f57a
commit-date: 2022-02-23
host: x86_64-pc-windows-msvc
release: 1.59.0
LLVM version: 13.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions