Enabling pipes for all stages, and updating closure syntax.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_))
|
||||
|
||||
Reference in New Issue
Block a user