rust-lang / rust-lang/rust-clippy

duplicate lints in rustc and clippy

Open
#6,058 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

There are some allow-by-default rustc lints that seem to have warn-by-default clippy counterparts, namely:

https://doc.rust-lang.org/beta/rustc/lints/listing/allowed-by-default.html#variant-size-differences
and
https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant

and

https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
and
https://doc.rust-lang.org/beta/rustc/lints/listing/allowed-by-default.html#single-use-lifetimes

Perhaps these we can see if the rustc lints could be replaced by the clippy lints if they are strict improvements.

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.

Research direction

Start by comparing the linked rustc lint documentation with the corresponding Clippy lint documentation for size-differences versus large-enum-variant and single-use-lifetimes versus extra-unused-lifetimes. Determine whether each Clippy lint is a strict improvement and identify the project changes needed to replace any redundant rustc lints; done means the overlap and replacement decisions are documented and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.