diff options
| author | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
| commit | bbcce8d95c582d3f918fe4e978d6a715efd991e9 (patch) | |
| tree | 6c0a714130897160fc6ef8a3d17671aed2bc8b90 /src/libstd/unstable | |
| parent | ecefeb03ccecdcb306e5cc3c76b04670073a82fa (diff) | |
| parent | 234acad404535868ecd7f5b48c3e120c4ea559c9 (diff) | |
| download | rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.tar.gz rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.zip | |
auto merge of #8216 : thestinger/rust/range, r=huonw
Diffstat (limited to 'src/libstd/unstable')
| -rw-r--r-- | src/libstd/unstable/sync.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/unstable/sync.rs b/src/libstd/unstable/sync.rs index f5c82bad2b1..4b5c72e5a86 100644 --- a/src/libstd/unstable/sync.rs +++ b/src/libstd/unstable/sync.rs @@ -436,9 +436,9 @@ mod tests { use cell::Cell; use comm; use option::*; + use prelude::*; use super::{Exclusive, UnsafeAtomicRcBox, atomically}; use task; - use uint; use util; #[test] @@ -458,13 +458,13 @@ mod tests { let total = Exclusive::new(~0); - for uint::range(0, num_tasks) |_i| { + foreach _ in range(0u, num_tasks) { let total = total.clone(); let (port, chan) = comm::stream(); futures.push(port); do task::spawn || { - for uint::range(0, count) |_i| { + foreach _ in range(0u, count) { do total.with |count| { **count += 1; } |
