about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPaul Stansifer <paul.stansifer@gmail.com>2011-05-16 18:05:21 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-05-17 05:40:17 +0000
commit1fdc75ee7cf1d498a413287b5444cdb4242c04c6 (patch)
tree769b81aa3bd7e56df6a81a66839566c46526cba6 /src/comp
parentf7df3696dea28f3bba9913d020e748e084f62920 (diff)
downloadrust-1fdc75ee7cf1d498a413287b5444cdb4242c04c6.tar.gz
rust-1fdc75ee7cf1d498a413287b5444cdb4242c04c6.zip
Parser fix: 'fail' was eating the next token that came after it.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/front/parser.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 104c2c6f71a..34162a44f75 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -898,7 +898,6 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
         ex = expand_syntax_ext(p, es.span, pth, es.node,
                                none[str]);
     } else if (eat_word(p, "fail")) {
-        p.bump();
         ex = ast::expr_fail(p.get_ann());
     } else if (eat_word(p, "log")) {
         auto e = parse_expr(p);