diff options
| author | Keegan McAllister <kmcallister@mozilla.com> | 2015-01-02 13:39:05 -0800 |
|---|---|---|
| committer | Keegan McAllister <kmcallister@mozilla.com> | 2015-01-05 18:21:14 -0800 |
| commit | c9f0ff3813a662197e262e64edb8302d2b4a3e75 (patch) | |
| tree | 0533a040160c8def11c60c883bf9fcfea63399b3 /src/libsyntax/parse/parser.rs | |
| parent | aa69cbde8279cd90457454c3b3f40a36e8a79dff (diff) | |
| download | rust-c9f0ff3813a662197e262e64edb8302d2b4a3e75.tar.gz rust-c9f0ff3813a662197e262e64edb8302d2b4a3e75.zip | |
Reserve the keyword 'macro'
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 5539abb16b4..24011df7acb 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3881,13 +3881,13 @@ impl<'a> Parser<'a> { &mut stmts, &mut expr); } - StmtMac(macro, MacStmtWithoutBraces) => { + StmtMac(mac, MacStmtWithoutBraces) => { // statement macro without braces; might be an // expr depending on whether a semicolon follows match self.token { token::Semi => { stmts.push(P(Spanned { - node: StmtMac(macro, + node: StmtMac(mac, MacStmtWithSemicolon), span: span, })); @@ -3896,7 +3896,7 @@ impl<'a> Parser<'a> { _ => { let e = self.mk_mac_expr(span.lo, span.hi, - macro.and_then(|m| m.node)); + mac.and_then(|m| m.node)); let e = self.parse_dot_or_call_expr_with(e); self.handle_expression_like_statement( |
