rust-lang / rust-lang/rust-clippy
duplicate lints in rustc and clippy
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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