Skip to content

Commit 4155a60

Browse files
committed
Fix FIXME that's no longer blocked by #2611
1 parent 2137254 commit 4155a60

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/vec.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1918,10 +1918,9 @@ impl<A: Copy> &[A]: iter::CopyableIter<A> {
19181918
}
19191919
pure fn to_vec() -> ~[A] { iter::to_vec(&self) }
19201920

1921-
// FIXME--bug in resolve prevents this from working (#2611)
1922-
// fn flat_map_to_vec<B:copy,IB:base_iter<B>>(op: fn(A) -> IB) -> ~[B] {
1923-
// iter::flat_map_to_vec(self, op)
1924-
// }
1921+
pure fn flat_map_to_vec<B:Copy,IB:BaseIter<B>>(op: fn(A) -> IB) -> ~[B] {
1922+
iter::flat_map_to_vec(&self, op)
1923+
}
19251924

19261925
pub pure fn find(p: fn(a: A) -> bool) -> Option<A> {
19271926
iter::find(&self, p)

0 commit comments

Comments
 (0)