about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-07-01 22:11:47 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-07-03 12:54:51 -0700
commitb81905eedbf56e026e8144a32056fd5dd0265d3b (patch)
treef89e6e14e2032e05d8fa8d41c46377fda7ccd00e /src/libsyntax/parse/parser.rs
parent9868b65b153a5bed9ca75eca750efae13e93cc44 (diff)
downloadrust-b81905eedbf56e026e8144a32056fd5dd0265d3b.tar.gz
rust-b81905eedbf56e026e8144a32056fd5dd0265d3b.zip
Fix ICE with nested macro_rules!-style macros
Fixes #10536.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 2aa2da3ba4b..f3789e25bc8 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3248,7 +3248,7 @@ impl<'a> Parser<'a> {
                 None      => {
                     // we only expect an ident if we didn't parse one
                     // above.
-                    let ident_str = if id == token::special_idents::invalid {
+                    let ident_str = if id.name == token::special_idents::invalid.name {
                         "identifier, "
                     } else {
                         ""
@@ -3268,7 +3268,7 @@ impl<'a> Parser<'a> {
             );
             let hi = self.span.hi;
 
-            if id == token::special_idents::invalid {
+            if id.name == token::special_idents::invalid.name {
                 return box(GC) spanned(lo, hi, StmtMac(
                     spanned(lo, hi, MacInvocTT(pth, tts, EMPTY_CTXT)), false));
             } else {