diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-02 11:38:45 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-07-06 10:42:39 -0700 |
| commit | a4838c93aadf4dbc32e71ddff19c6ecb6a95a66d (patch) | |
| tree | 42ed7b0a3a4cd8d6819af8d8a487647d5443edd8 /src/libcore | |
| parent | 67b0760592e1cf9aad2e84f1534ef08c3c5f1a2b (diff) | |
| download | rust-a4838c93aadf4dbc32e71ddff19c6ecb6a95a66d.tar.gz rust-a4838c93aadf4dbc32e71ddff19c6ecb6a95a66d.zip | |
Enabling pipes for all stages, and updating closure syntax.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/core.rc | 2 | ||||
| -rw-r--r-- | src/libcore/pipes.rs | 2 |
2 files changed, 1 insertions, 3 deletions
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<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_)) |
