rust-lang / rust-lang/rust-clippy
Support for upcoming `param_attrs` feature
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
param_attrs is likely to be stabilized in Rust 1.39
The param_attrs feature is going to allow lint attributes on function, method and closure parameters:
fn foo(
a: i32,
#[allow(unused_variables)] b: i32,
) {}
We should review how this feature ties in with our existing lints. Apparently it did not cause any toolstate breakage when it was merged.
Specifically, we should create a list of lints that could benefit from parameter attributes and then update those lints to make use of them (if that's even required).
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 with the linked Rust 1.39 param_attrs stabilization and implementation discussions, then review Clippy's existing lints for parameter-related cases. Done means identifying which lints benefit from parameter attributes and updating applicable lints if required, with validation for the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100