Skip to content

Commit

Permalink
fix stage0 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 19, 2013
1 parent fc65626 commit 9b6b0e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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))
Expand Down

5 comments on commit 9b6b0e1

@bors
Copy link
Contributor

@bors bors commented on 9b6b0e1 May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 9b6b0e1 May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging thestinger/rust/iterator = 9b6b0e1 into auto

@bors
Copy link
Contributor

@bors bors commented on 9b6b0e1 May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thestinger/rust/iterator = 9b6b0e1 merged ok, testing candidate = ccf6353

@bors
Copy link
Contributor

@bors bors commented on 9b6b0e1 May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 9b6b0e1 May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = ccf6353

Please sign in to comment.