From 0a00fab2492245bd637269a1a65ab6975ee17da2 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Thu, 18 Aug 2011 16:13:03 -0700 Subject: [PATCH] Fix task-comm-15 type errors and un-xfail. --- src/test/run-pass/task-comm-15.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/test/run-pass/task-comm-15.rs b/src/test/run-pass/task-comm-15.rs index 64cdc3553be..84f3abe9b86 100644 --- a/src/test/run-pass/task-comm-15.rs +++ b/src/test/run-pass/task-comm-15.rs @@ -1,23 +1,19 @@ -// xfail-stage1 -// xfail-stage2 -// xfail-stage3 - use std; import std::comm; import std::task; -fn start(c : comm::_chan, n: int) { +fn start(c : comm::chan, n: int) { let i: int = n; while i > 0 { comm::send(c, 0); i = i - 1; } } fn main() { - let p = comm::mk_port::>(); + let p = comm::mk_port(); // Spawn a task that sends us back messages. The parent task // is likely to terminate before the child completes, so from // the child's point of view the receiver may die. We should // drop messages on the floor in this case, and not crash! - let child = task::_spawn(bind start(p.mk_chan(), 10)); + let child = task::spawn(bind start(p.mk_chan(), 10)); let c = p.recv(); }