about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-12-09 17:34:44 -0800
committerGraydon Hoare <graydon@mozilla.com>2010-12-09 17:34:44 -0800
commit4e1046a5087f01a49e63a91f85ff22cc011848c4 (patch)
tree4174b010e1891f9be6cae96e21254d33def7ed98 /src
parentd5ed5e70449d66e6c86a3068a1d5601c5b11c7fe (diff)
downloadrust-4e1046a5087f01a49e63a91f85ff22cc011848c4.tar.gz
rust-4e1046a5087f01a49e63a91f85ff22cc011848c4.zip
Fix another bug in expr_index parse rule.
Diffstat (limited to 'src')
-rw-r--r--src/comp/front/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 45d8a371f84..dd5df9b54e1 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -499,7 +499,7 @@ impure fn parse_path_expr(parser p) -> @ast.expr {
 
                     case (token.LPAREN) {
                         p.bump();
-                        auto ix = parse_bottom_expr(p);
+                        auto ix = parse_expr(p);
                         hi = ix.span;
                         expect(p, token.RPAREN);
                         auto e_ = ast.expr_index(e, ix, ast.ann_none);