about summary refs log tree commit diff
path: root/src/libstd/unstable
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-08-01 18:35:46 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-08-02 00:51:14 -0400
commit234acad404535868ecd7f5b48c3e120c4ea559c9 (patch)
tree30aa039dafab71ca92ba8ecd0d52dc1cc559c85e /src/libstd/unstable
parent5890fcf87295d5b7a8f4ffa8d9918f755f72baf8 (diff)
replace `range` with an external iterator
Diffstat (limited to 'src/libstd/unstable')
-rw-r--r--src/libstd/unstable/sync.rs6
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;
                         }