parent
1e7ca8dd24
commit
da1a9a30fd
1 changed files with 2 additions and 2 deletions
|
|
@ -2500,7 +2500,6 @@ impl<T> FromIter<T> for ~[T]{
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl<A, T: Iterator<A>> FromIterator<A, T> for ~[A] {
|
||||
pub fn from_iterator(iterator: &mut T) -> ~[A] {
|
||||
let mut xs = ~[];
|
||||
|
|
@ -2511,7 +2510,7 @@ impl<A, T: Iterator<A>> FromIterator<A, T> for ~[A] {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
/* FIXME: #7341 - ICE
|
||||
impl<A, T: Iterator<A>> FromIterator<A, T> for ~[A] {
|
||||
pub fn from_iterator(iterator: &mut T) -> ~[A] {
|
||||
let (lower, _) = iterator.size_hint();
|
||||
|
|
@ -2522,6 +2521,7 @@ impl<A, T: Iterator<A>> FromIterator<A, T> for ~[A] {
|
|||
xs
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue