1
Fork 0

Revert "replace explicit calls to vec::each with vec::each_ref, partially demode str"

This reverts commit 1be24f0758.

Not quite ready.
This commit is contained in:
Niko Matsakis 2012-09-18 21:41:13 -07:00
parent 1be24f0758
commit 8d4928f780
77 changed files with 601 additions and 565 deletions

View file

@ -642,7 +642,6 @@ mod tests {
c.send(());
}
}
// Readers try to catch the writer in the act
let mut children = ~[];
for 5.times {
@ -653,10 +652,8 @@ mod tests {
}
}
}
// Wait for children to pass their asserts
for vec::each_ref(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; }
@ -716,8 +713,8 @@ mod tests {
assert *state == 42;
*state = 31337;
// send to other readers
for vec::each_ref(reader_convos) |x| {
match *x {
for vec::each(reader_convos) |x| {
match x {
(rc, _) => rc.send(()),
}
}
@ -725,8 +722,8 @@ mod tests {
let read_mode = arc.downgrade(write_mode);
do (&read_mode).read |state| {
// complete handshake with other readers
for vec::each_ref(reader_convos) |x| {
match *x {
for vec::each(reader_convos) |x| {
match x {
(_, rp) => rp.recv(),
}
}