about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-01-03 16:18:25 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-01-03 16:18:25 -0800
commit019095c9e691cb9bb1357dab67bf1ca584b09d0e (patch)
tree2c7117d038a8ffd0184418de6fd35f0161660635
parent2100aceabfdfd17a0ae8b2b8e9fed02444f5a1f0 (diff)
downloadrust-019095c9e691cb9bb1357dab67bf1ca584b09d0e.tar.gz
rust-019095c9e691cb9bb1357dab67bf1ca584b09d0e.zip
Actually return the correct node from the parser.
-rw-r--r--src/comp/front/parser.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index befdb82ed2e..1cf8af2d425 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -513,8 +513,7 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr {
                                                      some(token.COMMA),
                                                      pf, p);
             hi = es.span;
-            auto e_ = ast.expr_bind(e, es.node, ast.ann_none);
-            e = @spanned(lo, hi, e_);
+            ex = ast.expr_bind(e, es.node, ast.ann_none);
         }
 
         case (_) {