rust-lang / rust-lang/rust-clippy
Trivial enums should implement Copy + Clone
Open
Nobody has claimed this yet.
A-lint
E-medium
L-style
T-middle
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Example:
// no point in letting this `!Copy + !Clone`
enum Flag {
Yes,
No,
Maybe(f64)
}
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
The issue provides a Rust enum example but names no implementation files, tests, or entry points. Start by locating the existing Clippy lint implementations and their tests for enum traits; done means the requested lint identifies applicable trivial enums and has coverage for the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100