Skip to content

Check rust lints when an unknown lint is detected #118183

Closed

Description

Code

[lints.clippy]
missing_docs = "warn"

In your Cargo.toml.

Current output

warning[E0602]: unknown lint: `clippy::missing_docs`
  |
  = help: did you mean: `clippy::erasing_op`
  = note: requested on the command line with `-W clippy::missing_docs`
  = note: `#[warn(unknown_lints)]` on by default

Desired output

warning[E0602]: unknown lint: `clippy::missing_docs`
  |
  = help: did you mean: `missing_docs`. A lint with the same name was found in `rustc` lints.
  = note: requested on the command line with `-W clippy::missing_docs`
  = note: `#[warn(unknown_lints)]` on by default

Rationale and extra context

Initially opened at rust-lang/rust-clippy#11855

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

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintArea: Lints (warnings about flaws in source code) such as unused_mut.D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.T-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