1
Fork 0

Remove hir::MacroDef::attrs.

This commit is contained in:
Camille GILLOT 2021-02-18 19:34:40 +01:00
parent fd8a021757
commit c05c90275c
5 changed files with 6 additions and 7 deletions

View file

@ -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 },