We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc_cfg_placeholder
1 parent b8e9477 commit 4185b84Copy full SHA for 4185b84
src/tools/clippy/clippy_lints/src/attrs/duplicated_attributes.rs
@@ -36,7 +36,12 @@ 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::rustc_on_unimplemented
42
+ || name == sym::reason
43
+ || name == sym::rustc_cfg_placeholder
44
+ {
45
// FIXME: Would be nice to handle `cfg_attr` as well. Only problem is to check that cfg
46
// conditions are the same.
47
// `#[rustc_on_unimplemented]` contains duplicated subattributes, that's expected.
0 commit comments