Change AttrArgs::Eq
into a struct variant
This commit is contained in:
parent
caa81728c3
commit
778321d155
16 changed files with 43 additions and 39 deletions
|
@ -732,7 +732,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
|||
_ => item.to_tokens(),
|
||||
};
|
||||
let attr_item = attr.unwrap_normal_item();
|
||||
if let AttrArgs::Eq(..) = attr_item.args {
|
||||
if let AttrArgs::Eq { .. } = attr_item.args {
|
||||
self.cx.dcx().emit_err(UnsupportedKeyValue { span });
|
||||
}
|
||||
let inner_tokens = attr_item.args.inner_tokens();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue