about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorLindsey Kuper <lkuper@mozilla.com>2011-07-06 11:29:22 -0700
committerLindsey Kuper <lkuper@mozilla.com>2011-07-06 11:36:06 -0700
commite30d2c82ae44fea5b2e3ecd931020d08f304cf53 (patch)
tree3e8595db30f919e989ec3955a3b0cbe0e6e30153 /src/comp/syntax/parse
parent23bae67f4c741cccfb45362e7bdb2e37afde8da7 (diff)
downloadrust-e30d2c82ae44fea5b2e3ecd931020d08f304cf53.tar.gz
rust-e30d2c82ae44fea5b2e3ecd931020d08f304cf53.zip
Simplify AST for expr_anon_obj.
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 1e4ca951d07..209ddcc7ff6 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -801,8 +801,7 @@ fn parse_bottom_expr(&parser p) -> @ast::expr {
         // "spanned".
         let ast::anon_obj ob =
             rec(fields=fields, methods=meths, with_obj=with_obj);
-        auto odid = rec(ty=p.get_id(), ctor=p.get_id());
-        ex = ast::expr_anon_obj(ob, ty_params, odid);
+        ex = ast::expr_anon_obj(ob, ty_params);
     } else if (eat_word(p, "rec")) {
         expect(p, token::LPAREN);
         auto fields = [parse_field(p)];
@@ -1592,7 +1591,7 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool {
                 case (ast::expr_if_check(_, _, _)) { false }
                 case (ast::expr_port(_)) { true }
                 case (ast::expr_chan(_)) { true }
-                case (ast::expr_anon_obj(_,_,_)) { false }
+                case (ast::expr_anon_obj(_,_)) { false }
                 case (ast::expr_assert(_)) { true }
             }
         }