diff options
| author | Keegan McAllister <kmcallister@mozilla.com> | 2015-02-13 12:52:33 -0800 |
|---|---|---|
| committer | Keegan McAllister <kmcallister@mozilla.com> | 2015-02-13 12:54:58 -0800 |
| commit | 228603d9d210d121599ca384d2a66a90ba4299e1 (patch) | |
| tree | e481c09510b2d3ea1900970bd08bf4c22672780c /src/libsyntax/ext | |
| parent | cf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff) | |
| download | rust-228603d9d210d121599ca384d2a66a90ba4299e1.tar.gz rust-228603d9d210d121599ca384d2a66a90ba4299e1.zip | |
Parse `pub` in the expansion of a method macro
Fixes #17436.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index de61bdefa5d..f322cf8bad0 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -89,8 +89,7 @@ impl<'a> MacResult for ParserAnyMacro<'a> { match parser.token { token::Eof => break, _ => { - let attrs = parser.parse_outer_attributes(); - ret.push(parser.parse_method(attrs, ast::Inherited)) + ret.push(parser.parse_method_with_outer_attributes()); } } } |
