Skip to content

Commit 43c9fe6

Browse files
committed
Eliminate the last vestiges of init_recv.
1 parent 00b781e commit 43c9fe6

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

src/comp/middle/trans_dps.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,6 @@ fn trans_init_local(bcx: &@block_ctxt, local: &@ast::local) -> @block_ctxt {
551551
ast::init_move. {
552552
ret trans_expr(bcx, dest_move(bcx_tcx(bcx), llptr, t), init.expr);
553553
}
554-
ast::init_recv. {
555-
ret trans_recv(bcx, dest_copy(bcx_tcx(bcx), llptr, t), init.expr);
556-
}
557554
}
558555
}
559556
none. { ret bcx; }

src/comp/middle/typeck.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,11 +2531,6 @@ fn check_decl_initializer(fcx: &@fn_ctxt, nid: ast::node_id,
25312531
demand::simple(fcx, init.expr.span, lty,
25322532
expr_ty(fcx.ccx.tcx, init.expr));
25332533
}
2534-
ast::init_recv. {
2535-
let port_ty = ty::mk_port(fcx.ccx.tcx, lty);
2536-
demand::simple(fcx, init.expr.span, port_ty,
2537-
expr_ty(fcx.ccx.tcx, init.expr));
2538-
}
25392534
}
25402535
ret bot;
25412536
}

src/comp/syntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ tag stmt_ {
256256
stmt_crate_directive(@crate_directive);
257257
}
258258
259-
tag init_op { init_assign; init_recv; init_move; }
259+
tag init_op { init_assign; init_move; }
260260
261261
type initializer = {op: init_op, expr: @expr};
262262

src/comp/syntax/print/pprust.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,6 @@ fn print_decl(s: &ps, decl: &@ast::decl) {
10641064
alt init.op {
10651065
ast::init_assign. { word_space(s, "="); }
10661066
ast::init_move. { word_space(s, "<-"); }
1067-
ast::init_recv. { word_space(s, "|>"); }
10681067
}
10691068
print_expr(s, init.expr);
10701069
}

0 commit comments

Comments
 (0)