about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2011-08-10 19:21:29 -0700
committerMichael Sullivan <sully@msully.net>2011-08-10 19:21:29 -0700
commit43c9fe65bdfd9edf3de5386596837502ff88ea0d (patch)
treefa52fa81f36449c2c16809c32846cae88f008901 /src
parent00b781e495e9b489d4038565903a56e8dfb8433c (diff)
downloadrust-43c9fe65bdfd9edf3de5386596837502ff88ea0d.tar.gz
rust-43c9fe65bdfd9edf3de5386596837502ff88ea0d.zip
Eliminate the last vestiges of init_recv.
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans_dps.rs3
-rw-r--r--src/comp/middle/typeck.rs5
-rw-r--r--src/comp/syntax/ast.rs2
-rw-r--r--src/comp/syntax/print/pprust.rs1
4 files changed, 1 insertions, 10 deletions
diff --git a/src/comp/middle/trans_dps.rs b/src/comp/middle/trans_dps.rs
index 80590466c03..4648ff31d83 100644
--- a/src/comp/middle/trans_dps.rs
+++ b/src/comp/middle/trans_dps.rs
@@ -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; }
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs
index 5bed01483db..f1dd97512ec 100644
--- a/src/comp/middle/typeck.rs
+++ b/src/comp/middle/typeck.rs
@@ -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;
 }
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs
index f93398591c5..b3354a9b04f 100644
--- a/src/comp/syntax/ast.rs
+++ b/src/comp/syntax/ast.rs
@@ -256,7 +256,7 @@ tag stmt_ {
     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};
 
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index c732039eaa1..0dc38357576 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -1064,7 +1064,6 @@ fn print_decl(s: &ps, decl: &@ast::decl) {
                 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);
               }