mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Eliminate the last vestiges of init_recv.
This commit is contained in:
@@ -551,9 +551,6 @@ fn trans_init_local(bcx: &@block_ctxt, local: &@ast::local) -> @block_ctxt {
|
||||
ast::init_move. {
|
||||
ret trans_expr(bcx, dest_move(bcx_tcx(bcx), llptr, t), init.expr);
|
||||
}
|
||||
ast::init_recv. {
|
||||
ret trans_recv(bcx, dest_copy(bcx_tcx(bcx), llptr, t), init.expr);
|
||||
}
|
||||
}
|
||||
}
|
||||
none. { ret bcx; }
|
||||
|
||||
@@ -2531,11 +2531,6 @@ fn check_decl_initializer(fcx: &@fn_ctxt, nid: ast::node_id,
|
||||
demand::simple(fcx, init.expr.span, lty,
|
||||
expr_ty(fcx.ccx.tcx, init.expr));
|
||||
}
|
||||
ast::init_recv. {
|
||||
let port_ty = ty::mk_port(fcx.ccx.tcx, lty);
|
||||
demand::simple(fcx, init.expr.span, port_ty,
|
||||
expr_ty(fcx.ccx.tcx, init.expr));
|
||||
}
|
||||
}
|
||||
ret bot;
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ fn unop_to_str(op: unop) -> str {
|
||||
stmt_crate_directive(@crate_directive);
|
||||
}
|
||||
|
||||
tag init_op { init_assign; init_recv; init_move; }
|
||||
tag init_op { init_assign; init_move; }
|
||||
|
||||
type initializer = {op: init_op, expr: @expr};
|
||||
|
||||
|
||||
@@ -1064,7 +1064,6 @@ fn print_local(s: &ps, loc: &@ast::local) {
|
||||
alt init.op {
|
||||
ast::init_assign. { word_space(s, "="); }
|
||||
ast::init_move. { word_space(s, "<-"); }
|
||||
ast::init_recv. { word_space(s, "|>"); }
|
||||
}
|
||||
print_expr(s, init.expr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user