We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cfg_attr
1 parent f357993 commit 6cf2d72Copy full SHA for 6cf2d72
clippy_lints/src/attrs/duplicated_attributes.rs
@@ -36,7 +36,11 @@ fn check_duplicated_attr(
36
}
37
let Some(ident) = attr.ident() else { return };
38
let name = ident.name;
39
- if name == sym::doc || name == sym::cfg_attr || name == sym::rustc_on_unimplemented || name == sym::reason {
+ if name == sym::doc
40
+ || name == sym::cfg_attr
41
+ || name == sym::cfg_attr_trace
42
+ || name == sym::rustc_on_unimplemented
43
+ || name == sym::reason {
44
// FIXME: Would be nice to handle `cfg_attr` as well. Only problem is to check that cfg
45
// conditions are the same.
46
// `#[rustc_on_unimplemented]` contains duplicated subattributes, that's expected.
0 commit comments