Attach tokens to NtMeta
(ast::AttrItem
)
An `AttrItem` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
This commit is contained in:
parent
d5a04a9927
commit
3815e91ccd
9 changed files with 17 additions and 6 deletions
|
@ -162,7 +162,7 @@ impl<'a> Parser<'a> {
|
|||
} else {
|
||||
let path = self.parse_path(PathStyle::Mod)?;
|
||||
let args = self.parse_attr_args()?;
|
||||
ast::AttrItem { path, args }
|
||||
ast::AttrItem { path, args, tokens: None }
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue