libstd: rename vec::each(var) to var.each
This commit is contained in:
parent
472d9f33df
commit
d4fa0f1485
11 changed files with 24 additions and 28 deletions
|
@ -484,7 +484,6 @@ mod tests {
|
|||
|
||||
use core::cell::Cell;
|
||||
use core::task;
|
||||
use core::vec;
|
||||
|
||||
#[test]
|
||||
fn manually_share_arc() {
|
||||
|
@ -683,7 +682,7 @@ mod tests {
|
|||
}
|
||||
|
||||
// Wait for children to pass their asserts
|
||||
for vec::each(children) |r| {
|
||||
for children.each |r| {
|
||||
r.recv();
|
||||
}
|
||||
|
||||
|
@ -748,7 +747,7 @@ mod tests {
|
|||
assert!(*state == 42);
|
||||
*state = 31337;
|
||||
// send to other readers
|
||||
for vec::each(reader_convos) |x| {
|
||||
for reader_convos.each |x| {
|
||||
match *x {
|
||||
(ref rc, _) => rc.send(()),
|
||||
}
|
||||
|
@ -757,7 +756,7 @@ mod tests {
|
|||
let read_mode = arc.downgrade(write_mode);
|
||||
do (&read_mode).read |state| {
|
||||
// complete handshake with other readers
|
||||
for vec::each(reader_convos) |x| {
|
||||
for reader_convos.each |x| {
|
||||
match *x {
|
||||
(_, ref rp) => rp.recv(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue