expand: Leave traces when expanding cfg_attr attributes
This commit is contained in:
parent
f3579934b1
commit
6cf2d72150
1 changed files with 5 additions and 1 deletions
|
|
@ -36,7 +36,11 @@ fn check_duplicated_attr(
|
|||
}
|
||||
let Some(ident) = attr.ident() else { return };
|
||||
let name = ident.name;
|
||||
if name == sym::doc || name == sym::cfg_attr || name == sym::rustc_on_unimplemented || name == sym::reason {
|
||||
if name == sym::doc
|
||||
|| name == sym::cfg_attr
|
||||
|| name == sym::cfg_attr_trace
|
||||
|| name == sym::rustc_on_unimplemented
|
||||
|| name == sym::reason {
|
||||
// FIXME: Would be nice to handle `cfg_attr` as well. Only problem is to check that cfg
|
||||
// conditions are the same.
|
||||
// `#[rustc_on_unimplemented]` contains duplicated subattributes, that's expected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue