diff options
| author | bors <bors@rust-lang.org> | 2013-05-14 00:46:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-14 00:46:48 -0700 |
| commit | 5a2f65fb5035627b8fb0b1ce0e927a492d55e3a4 (patch) | |
| tree | c694aca3e3b43832d48460e5fa4fdb583977bbcd /src/libcore/task | |
| parent | 3aa1122ec25d15a2a73a295f8298ad9c38b09a10 (diff) | |
| parent | 66e1e517019c70450dcadeb0d876c686729215e3 (diff) | |
| download | rust-5a2f65fb5035627b8fb0b1ce0e927a492d55e3a4.tar.gz rust-5a2f65fb5035627b8fb0b1ce0e927a492d55e3a4.zip | |
auto merge of #6441 : alexcrichton/rust/issue-5531, r=luqmana
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude. I'm not quite sure how resolution works with traits, but it seems to me like the public imports at the top-level of the core crate were leaking into the sub-crates, but that could also be working as intended. Regardless, things compile without the re-exports now.
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/mod.rs | 2 | ||||
| -rw-r--r-- | src/libcore/task/spawn.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 2484d8c5fed..1518f80a125 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -772,7 +772,7 @@ fn test_add_wrapper() { do b0.add_wrapper |body| { let ch = Cell(ch.take()); let result: ~fn() = || { - let mut ch = ch.take(); + let ch = ch.take(); body(); ch.send(()); }; diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs index 545f1ac8ada..9a1689ca056 100644 --- a/src/libcore/task/spawn.rs +++ b/src/libcore/task/spawn.rs @@ -78,7 +78,6 @@ use cell::Cell; use container::Map; use comm::{Chan, GenericChan}; use prelude::*; -use unstable; use ptr; use hashmap::HashSet; use task::local_data_priv::{local_get, local_set, OldHandle}; |
