From 9cf271fe96b474d514b1052935db70c4056cf076 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 21:41:37 -0700 Subject: De-mode vec::each() and many of the str iteration routines Note that the method foo.each() is not de-moded, nor the other vec routines. --- src/libstd/arc.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libstd/arc.rs') diff --git a/src/libstd/arc.rs b/src/libstd/arc.rs index a50e897358c..5c4e1097fe2 100644 --- a/src/libstd/arc.rs +++ b/src/libstd/arc.rs @@ -642,6 +642,7 @@ mod tests { c.send(()); } } + // Readers try to catch the writer in the act let mut children = ~[]; for 5.times { @@ -652,8 +653,10 @@ mod tests { } } } + // Wait for children to pass their asserts - for vec::each(children) |r| { future::get(&r); } + for vec::each(children) |r| { future::get(r); } + // Wait for writer to finish p.recv(); do arc.read |num| { assert *num == 10; } @@ -714,7 +717,7 @@ mod tests { *state = 31337; // send to other readers for vec::each(reader_convos) |x| { - match x { + match *x { (rc, _) => rc.send(()), } } @@ -723,7 +726,7 @@ mod tests { do (&read_mode).read |state| { // complete handshake with other readers for vec::each(reader_convos) |x| { - match x { + match *x { (_, rp) => rp.recv(), } } -- cgit 1.4.1-3-g733a5