Skip to content

Commit 5d39d0b

Browse files
committed
tests: Remove uses of advance.
1 parent f61472d commit 5d39d0b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/compile-fail/liveness-issue-2163.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::vec::Vec;
1212

1313
fn main() {
1414
let a: Vec<int> = Vec::new();
15-
a.iter().advance(|_| -> bool {
15+
a.iter().all(|_| -> bool {
1616
//~^ ERROR mismatched types
1717
});
1818
}

src/test/run-pass/assignability-trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ trait iterable<A> {
1919

2020
impl<'a,A> iterable<A> for &'a [A] {
2121
fn iterate(&self, f: |x: &A| -> bool) -> bool {
22-
self.iter().advance(f)
22+
self.iter().all(f)
2323
}
2424
}
2525

2626
impl<A> iterable<A> for Vec<A> {
2727
fn iterate(&self, f: |x: &A| -> bool) -> bool {
28-
self.iter().advance(f)
28+
self.iter().all(f)
2929
}
3030
}
3131

src/test/run-pass/borrowck-mut-uniq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn add_int(x: &mut Ints, v: int) {
2424

2525
fn iter_ints(x: &Ints, f: |x: &int| -> bool) -> bool {
2626
let l = x.values.len();
27-
range(0u, l).advance(|i| f(x.values.get(i)))
27+
range(0u, l).all(|i| f(x.values.get(i)))
2828
}
2929

3030
pub fn main() {

0 commit comments

Comments
 (0)