Skip to content

Commit 9b6b0e1

Browse files
committed
fix stage0 compile
1 parent fc65626 commit 9b6b0e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/iterator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub trait IteratorUtil<A> {
4747
fn advance(&mut self, f: &fn(A) -> bool);
4848
#[cfg(not(stage0))]
4949
fn advance(&mut self, f: &fn(A) -> bool) -> bool;
50+
#[cfg(not(stage0))]
5051
fn to_vec(&mut self) -> ~[A];
5152
fn nth(&mut self, n: uint) -> Option<A>;
5253
fn last(&mut self) -> Option<A>;
@@ -146,6 +147,7 @@ impl<A, T: Iterator<A>> IteratorUtil<A> for T {
146147
}
147148
}
148149

150+
#[cfg(not(stage0))]
149151
#[inline(always)]
150152
fn to_vec(&mut self) -> ~[A] {
151153
iter::to_vec::<A>(|f| self.advance(f))

0 commit comments

Comments
 (0)