Remove hir::MacroDef::attrs.
This commit is contained in:
parent
fd8a021757
commit
c05c90275c
5 changed files with 6 additions and 7 deletions
|
@ -221,12 +221,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
if let ItemKind::MacroDef(MacroDef { ref body, macro_rules }) = i.kind {
|
||||
if !macro_rules || self.sess.contains_name(&i.attrs, sym::macro_export) {
|
||||
let hir_id = self.lower_node_id(i.id);
|
||||
let attrs = self.lower_attrs(hir_id, &i.attrs);
|
||||
self.lower_attrs(hir_id, &i.attrs);
|
||||
let body = P(self.lower_mac_args(body));
|
||||
self.exported_macros.push(hir::MacroDef {
|
||||
ident,
|
||||
vis,
|
||||
attrs,
|
||||
def_id: hir_id.expect_owner(),
|
||||
span: i.span,
|
||||
ast: MacroDef { body, macro_rules },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue