about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-02-18 19:34:40 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-03-09 19:09:36 +0100
commitc05c90275c264a800f15ca7a52019c0874ad58a8 (patch)
tree59c3932d6d6b2926aa6f3921d1a3d8c633d32a67 /compiler/rustc_ast_lowering/src
parentfd8a0217571d00d028bb2878cc0df5c3686a300e (diff)
downloadrust-c05c90275c264a800f15ca7a52019c0874ad58a8.tar.gz
rust-c05c90275c264a800f15ca7a52019c0874ad58a8.zip
Remove hir::MacroDef::attrs.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/item.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs
index b13cdbadb5a..35995f6ee93 100644
--- a/compiler/rustc_ast_lowering/src/item.rs
+++ b/compiler/rustc_ast_lowering/src/item.rs
@@ -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 },