diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-05-18 22:10:56 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-05-18 22:10:56 -0400 |
| commit | 9b6b0e1e646b42de7205a21bf73e5c4c2b203a6b (patch) | |
| tree | e5812d244cc5758ec9af60a6474d62632063fe71 | |
| parent | fc656262a905a50eff2be54a87295d2952d29106 (diff) | |
fix stage0 compile
| -rw-r--r-- | src/libcore/iterator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/iterator.rs b/src/libcore/iterator.rs index 41f916f2d15..ecf76a39fcd 100644 --- a/src/libcore/iterator.rs +++ b/src/libcore/iterator.rs @@ -47,6 +47,7 @@ pub trait IteratorUtil<A> { fn advance(&mut self, f: &fn(A) -> bool); #[cfg(not(stage0))] fn advance(&mut self, f: &fn(A) -> bool) -> bool; + #[cfg(not(stage0))] fn to_vec(&mut self) -> ~[A]; fn nth(&mut self, n: uint) -> Option<A>; fn last(&mut self) -> Option<A>; @@ -146,6 +147,7 @@ impl<A, T: Iterator<A>> IteratorUtil<A> for T { } } + #[cfg(not(stage0))] #[inline(always)] fn to_vec(&mut self) -> ~[A] { iter::to_vec::<A>(|f| self.advance(f)) |
