summary refs log tree commit diff
path: root/src/libstd/vec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-03 01:07:55 -0700
committerbors <bors@rust-lang.org>2013-07-03 01:07:55 -0700
commitea31b9cca1e63a01fa75874cebca3f72f46ae029 (patch)
tree5d8646f3851236de2822d05fded96c75fe75a43b /src/libstd/vec.rs
parent025dc6e64ef364e0978c7a7b07ce1aeedf9810e5 (diff)
parent3fe05a987c0d1684b1172ca29c9a9ad79852419e (diff)
downloadrust-ea31b9cca1e63a01fa75874cebca3f72f46ae029.tar.gz
rust-ea31b9cca1e63a01fa75874cebca3f72f46ae029.zip
auto merge of #7474 : Seldaek/rust/clean-iter, r=thestinger
I think it's WIP - but I wanted to ask for feedback (/cc @thestinger)

I had to move the impl of FromIter for vec into extra::iter because I don't think std can depend on extra, but that's a bit messed up. Similarly some FromIter uses are gone now, not sure if this is fixable or if I made a complete mess here..
Diffstat (limited to 'src/libstd/vec.rs')
-rw-r--r--src/libstd/vec.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index 02eadaed5e8..28532bd54e3 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -19,7 +19,6 @@ use cmp;
 use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater};
 use clone::Clone;
 use iterator::{FromIterator, Iterator, IteratorUtil};
-use iter::FromIter;
 use kinds::Copy;
 use libc;
 use libc::c_void;
@@ -2168,15 +2167,6 @@ pub struct VecMutRevIterator<'self, T> {
 }
 iterator!{impl VecMutRevIterator -> &'self mut T, -1}
 
-impl<T> FromIter<T> for ~[T]{
-    #[inline]
-    pub fn from_iter(iter: &fn(f: &fn(T) -> bool) -> bool) -> ~[T] {
-        let mut v = ~[];
-        for iter |x| { v.push(x) }
-        v
-    }
-}
-
 #[cfg(stage0)]
 impl<A, T: Iterator<A>> FromIterator<A, T> for ~[A] {
     pub fn from_iterator(iterator: &mut T) -> ~[A] {