about summary refs log tree commit diff
path: root/src/libstd/sync.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-18 18:31:59 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-18 21:31:00 -0700
commit1be24f0758d3075d2e7f141f8831bb8a233ce86e (patch)
tree28b93c29c3b427f7cd84142a49b1b86222d700eb /src/libstd/sync.rs
parente17a3b3194cc5dc213d13ff6499c93482215c223 (diff)
downloadrust-1be24f0758d3075d2e7f141f8831bb8a233ce86e.tar.gz
rust-1be24f0758d3075d2e7f141f8831bb8a233ce86e.zip
replace explicit calls to vec::each with vec::each_ref, partially demode str
Diffstat (limited to 'src/libstd/sync.rs')
-rw-r--r--src/libstd/sync.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs
index f5528f7a79c..53d41bce977 100644
--- a/src/libstd/sync.rs
+++ b/src/libstd/sync.rs
@@ -941,7 +941,7 @@ mod tests {
                     }
                 }
             }
-            for vec::each(sibling_convos) |p| {
+            for vec::each_ref(sibling_convos) |p| {
                 let _ = p.recv(); // wait for sibling to get in the mutex
             }
             do m2.lock { }
@@ -950,7 +950,7 @@ mod tests {
         };
         assert result.is_err();
         // child task must have finished by the time try returns
-        for vec::each(p.recv()) |p| { p.recv(); } // wait on all its siblings
+        for vec::each_ref(p.recv()) |p| { p.recv(); } // wait on all its siblings
         do m.lock_cond |cond| {
             let woken = cond.broadcast();
             assert woken == 0;