rust-lang / rust-lang/rust-clippy

Use rustc_lint's `is_ty_must_use`

Open
#16,606 1 comment 0 reactions 1 assignee View on GitHub

@samueltardieu is already working on this.

Since Feb 21, 2026.

C-enhancement
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

Description

Once https://github.com/rust-lang/rust/pull/148214 is merged, it would be if Clippy could use rustc_lint's is_ty_must_use instead of having its own (currently outdated) view of the situation.

See this Zulip thread for more context.

Version

Additional Labels

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.