Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check rust lints when an unknown lint is detected #118183

Closed
alice-i-cecile opened this issue Nov 22, 2023 · 0 comments · Fixed by #119819
Closed

Check rust lints when an unknown lint is detected #118183

alice-i-cecile opened this issue Nov 22, 2023 · 0 comments · Fixed by #119819
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@alice-i-cecile
Copy link

alice-i-cecile commented Nov 22, 2023

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

@alice-i-cecile alice-i-cecile added A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 22, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 22, 2023
@alice-i-cecile alice-i-cecile added the A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. label Nov 22, 2023
@fmease fmease added D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Nov 23, 2023
@chenyukang chenyukang self-assigned this Nov 28, 2023
@bors bors closed this as completed in 737452a Jan 12, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Jan 12, 2024
Rollup merge of rust-lang#119819 - chenyukang:yukang-fix-118183-lint, r=davidtwco

Check rust lints when an unknown lint is detected

Fixes rust-lang#118183
flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 25, 2024
… r=davidtwco

Check rust lints when an unknown lint is detected

Fixes rust-lang#118183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants