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

Wrong unused_result_ok version #13497

Open
TomFryersMidsummer opened this issue Oct 4, 2024 · 0 comments · May be fixed by #13506
Open

Wrong unused_result_ok version #13497

TomFryersMidsummer opened this issue Oct 4, 2024 · 0 comments · May be fixed by #13506
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@TomFryersMidsummer
Copy link

Summary

unused_result_ok says it was introduced in Clippy 1.70, but it's much newer than that. In particular, it doesn’t exist in the latest stable version 1.81.

Reproducer

I tried this code:

clippy-driver -W clippy::unused_result_ok main.rs

I expected to see this happen: [no error]

Instead, this happened:

warning[E0602]: unknown lint: `clippy::unused_result_ok`
  |
  = help: a lint with a similar name exists in `rustc` lints: `unused_results`
  = note: requested on the command line with `-W clippy::unused_result_ok`
  = note: `#[warn(unknown_lints)]` on by default

Version

rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: x86_64-unknown-linux-gnu
release: 1.81.0
LLVM version: 18.1.7

Additional Labels

No response

@TomFryersMidsummer TomFryersMidsummer added the C-bug Category: Clippy is not doing the correct thing label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant