Skip to content

Check rust lints when an unknown lint is detected #118183

Closed

Description

@alice-i-cecile

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

Activity

  1. added
    A-diagnosticsArea: Messages for errors, warnings, and lints
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Nov 22, 2023
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 22, 2023
  3. added
    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.
    on Nov 22, 2023
  4. added
    D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 23, 2023
  5. self-assigned this
    on Nov 28, 2023
  6. added a commit that references this issue on Jan 12, 2024
    737452a
  7. added a commit that references this issue on Jan 12, 2024
    1f0604a
  8. added a commit that references this issue on Jan 25, 2024
    e9f8713
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintsArea: 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