Enabling pipes for all stages, and updating closure syntax.

This commit is contained in:
Eric Holk
2012-07-02 11:38:45 -07:00
parent 67b0760592
commit a4838c93aa
7 changed files with 17 additions and 21 deletions

View File

@@ -187,8 +187,6 @@ mod newcomm;
mod comm;
mod task;
mod future;
// TODO: remove the conditionals once a new snapshot happens
#[cfg(stage1)]
mod pipes;
// Runtime and language-primitive support

View File

@@ -197,7 +197,7 @@ fn spawn_service<T: send>(
// This is some nasty gymnastics required to safely move the pipe
// into a new task.
let server = ~mut some(server);
task::spawn() {|move service|
do task::spawn |move service| {
let mut server_ = none;
server_ <-> *server;
service(option::unwrap(server_))