rust-lang/rust-clippy

Support for upcoming `param_attrs` feature

Open

#4,474 建立於 2019年8月30日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Rust (1,391 fork)batch import
C-enhancementE-needs-testS-needs-discussiongood first issue

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

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).

貢獻者指南