Skip to content

Wrong unused_result_ok version #13497

Closed
@TomFryersMidsummer

Description

@TomFryersMidsummer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions