]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/tt/macro_rules.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / libsyntax / ext / tt / macro_rules.rs
index 6c7bbb2384c12630f87ee5f5d892e017ec71a6dc..7a7dbc54c9ef940eda864006a669bca9a3243465 100644 (file)
@@ -90,7 +90,10 @@ fn make_methods(self: Box<ParserAnyMacro<'a>>) -> Option<SmallVector<P<ast::Meth
             let mut parser = self.parser.borrow_mut();
             match parser.token {
                 EOF => break,
-                _ => ret.push(parser.parse_method(None))
+                _ => {
+                    let attrs = parser.parse_outer_attributes();
+                    ret.push(parser.parse_method(attrs, ast::Inherited))
+                }
             }
         }
         self.ensure_complete_parse(false);