Skip to content

Commit 57e3e1d

Browse files
committed
---
yaml --- r: 3629 b: refs/heads/master c: e30d2c8 h: refs/heads/master i: 3627: dec5c3a v: v3
1 parent da6c5db commit 57e3e1d

File tree

11 files changed

+14
-16
lines changed

11 files changed

+14
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 23bae67f4c741cccfb45362e7bdb2e37afde8da7
2+
refs/heads/master: e30d2c82ae44fea5b2e3ecd931020d08f304cf53

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6268,7 +6268,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output) ->
62686268
case (ast::expr_spawn(?dom, ?name, ?func, ?args)) {
62696269
ret trans_spawn(cx, dom, name, func, args, e.id);
62706270
}
6271-
case (ast::expr_anon_obj(?anon_obj, ?tps, _)) {
6271+
case (ast::expr_anon_obj(?anon_obj, ?tps)) {
62726272
ret trans_anon_obj(cx, e.span, anon_obj, tps, e.id);
62736273
}
62746274
case (_) {

trunk/src/comp/middle/tstate/pre_post_conditions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ fn find_pre_post_expr(&fn_ctxt fcx, @expr e) {
571571
find_pre_post_expr(fcx, expanded);
572572
copy_pre_post(fcx.ccx, e.id, expanded);
573573
}
574-
case (expr_anon_obj(?anon_obj, _, _)) {
574+
case (expr_anon_obj(?anon_obj, _)) {
575575
alt (anon_obj.with_obj) {
576576
case (some(?ex)) {
577577
find_pre_post_expr(fcx, ex);

trunk/src/comp/middle/tstate/states.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ fn find_pre_post_state_expr(&fn_ctxt fcx, &prestate pres, @expr e) -> bool {
570570
case (expr_cont) { ret pure_exp(fcx.ccx, e.id, pres); }
571571
case (expr_port(_)) { ret pure_exp(fcx.ccx, e.id, pres); }
572572
case (expr_self_method(_)) { ret pure_exp(fcx.ccx, e.id, pres); }
573-
case (expr_anon_obj(?anon_obj, _, _)) {
573+
case (expr_anon_obj(?anon_obj, _)) {
574574
alt (anon_obj.with_obj) {
575575
case (some(?wt)) {
576576
ret find_pre_post_state_sub(fcx, pres, wt, e.id, none);

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
22022202
}
22032203
}
22042204
}
2205-
case (ast::expr_anon_obj(?anon_obj, ?tps, ?obj_def_ids)) {
2205+
case (ast::expr_anon_obj(?anon_obj, ?tps)) {
22062206
// TODO: We probably need to do more work here to be able to
22072207
// handle additional methods that use 'self'
22082208

@@ -2221,12 +2221,11 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
22212221
ret rec(mut=f.mut, ty=f.ty, ident=f.ident, id=f.id);
22222222
}
22232223

2224-
let ast::node_id di = obj_def_ids.ty;
22252224
vec::push[obj_info](fcx.ccx.obj_infos,
22262225
rec(obj_fields=
22272226
vec::map(anon_obj_field_to_obj_field,
22282227
fields),
2229-
this_obj=di));
2228+
this_obj=id));
22302229

22312230
// FIXME: These next three functions are largely ripped off from
22322231
// similar ones in collect::. Is there a better way to do this?

trunk/src/comp/syntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ tag expr_ {
296296
expr_if_check(@expr, block, option::t[@expr]);
297297
expr_port(option::t[@ty]);
298298
expr_chan(@expr);
299-
expr_anon_obj(anon_obj, vec[ty_param], obj_def_ids);
299+
expr_anon_obj(anon_obj, vec[ty_param]);
300300
}
301301
302302
type lit = spanned[lit_];

trunk/src/comp/syntax/fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ fn noop_fold_expr(&expr_ e, ast_fold fld) -> expr_ {
429429
})
430430
}
431431
case (expr_chan(?e)) { expr_chan(fld.fold_expr(e)) }
432-
case (expr_anon_obj(?ao, ?typms, ?odis)) {
433-
expr_anon_obj(fold_anon_obj(ao), typms, odis)
432+
case (expr_anon_obj(?ao, ?typms)) {
433+
expr_anon_obj(fold_anon_obj(ao), typms)
434434
}
435435
}
436436
}

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,7 @@ fn parse_bottom_expr(&parser p) -> @ast::expr {
801801
// "spanned".
802802
let ast::anon_obj ob =
803803
rec(fields=fields, methods=meths, with_obj=with_obj);
804-
auto odid = rec(ty=p.get_id(), ctor=p.get_id());
805-
ex = ast::expr_anon_obj(ob, ty_params, odid);
804+
ex = ast::expr_anon_obj(ob, ty_params);
806805
} else if (eat_word(p, "rec")) {
807806
expect(p, token::LPAREN);
808807
auto fields = [parse_field(p)];
@@ -1592,7 +1591,7 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool {
15921591
case (ast::expr_if_check(_, _, _)) { false }
15931592
case (ast::expr_port(_)) { true }
15941593
case (ast::expr_chan(_)) { true }
1595-
case (ast::expr_anon_obj(_,_,_)) { false }
1594+
case (ast::expr_anon_obj(_,_)) { false }
15961595
case (ast::expr_assert(_)) { true }
15971596
}
15981597
}

trunk/src/comp/syntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ fn print_expr(&ps s, &@ast::expr expr) {
953953
print_expr(s, expr);
954954
pclose(s);
955955
}
956-
case (ast::expr_anon_obj(_, _, _)) {
956+
case (ast::expr_anon_obj(_, _)) {
957957
word(s.s, "anon obj");
958958
// FIXME (issue #499): nicer pretty-printing of anon objs
959959

trunk/src/comp/syntax/visit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fn visit_expr[E](&@expr ex, &E e, &vt[E] v) {
371371
case (expr_assert(?x)) { vt(v).visit_expr(x, e, v); }
372372
case (expr_port(_)) { }
373373
case (expr_chan(?x)) { vt(v).visit_expr(x, e, v); }
374-
case (expr_anon_obj(?anon_obj, _, _)) {
374+
case (expr_anon_obj(?anon_obj, _)) {
375375
alt (anon_obj.fields) {
376376
case (none) { }
377377
case (some(?fields)) {

trunk/src/comp/syntax/walk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ fn walk_expr(&ast_visitor v, @ast::expr e) {
380380
case (ast::expr_assert(?x)) { walk_expr(v, x); }
381381
case (ast::expr_port(_)) { }
382382
case (ast::expr_chan(?x)) { walk_expr(v, x); }
383-
case (ast::expr_anon_obj(?anon_obj, _, _)) {
383+
case (ast::expr_anon_obj(?anon_obj, _)) {
384384
// Fields
385385

386386
alt (anon_obj.fields) {

0 commit comments

Comments
 (0)