expand: Leave traces when expanding cfg
attributes
This commit is contained in:
parent
65899c06f1
commit
92d802eda6
24 changed files with 88 additions and 108 deletions
|
@ -593,7 +593,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
|
|||
}
|
||||
|
||||
fn print_attribute_inline(&mut self, attr: &ast::Attribute, is_inline: bool) -> bool {
|
||||
if attr.has_name(sym::cfg_attr_trace) {
|
||||
if attr.has_name(sym::cfg_trace) || attr.has_name(sym::cfg_attr_trace) {
|
||||
// It's not a valid identifier, so avoid printing it
|
||||
// to keep the printed code reasonably parse-able.
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue