From a4838c93aadf4dbc32e71ddff19c6ecb6a95a66d Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Mon, 2 Jul 2012 11:38:45 -0700 Subject: Enabling pipes for all stages, and updating closure syntax. --- src/libcore/core.rc | 2 -- src/libcore/pipes.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/core.rc b/src/libcore/core.rc index 97eefd708f3..de0e7fb8f67 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -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 diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index 75a4b90af06..ae141cedc82 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -197,7 +197,7 @@ fn spawn_service( // 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_)) -- cgit 1.4.1-3-g733a5