rust-lang / rust-lang/rust-clippy
trait impls on &T for traits that only have &self methods
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
The trait could be implemented for T directly
should probably be allow-by-default, because the trait might be extended by a self method in the future (or is that a breaking change due to object safety anyway?)
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 names no files, tests, or entry points. Start by locating the lint that checks trait implementations for &T, then read its existing tests and the relevant Rust trait and object-safety behavior; done means the intended default behavior for T versus &T is decided and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100