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.
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user