From ae429056ffa166a9d3a15c8641a838a7a2f5f86e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 22 Mar 2014 19:18:37 -0400 Subject: iter: remove `to_owned_vec` This needs to be removed as part of removing `~[T]`. Partial type hints are now allowed, and will remove the need to add a version of this method for `Vec`. For now, this involves a few workarounds for partial type hints not completely working. --- src/libstd/sync/deque.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/deque.rs b/src/libstd/sync/deque.rs index 658ee48af1a..80a5b9ce3bb 100644 --- a/src/libstd/sync/deque.rs +++ b/src/libstd/sync/deque.rs @@ -494,7 +494,7 @@ mod tests { } } }) - }).to_owned_vec(); + }).collect::<~[Thread<()>]>(); while remaining.load(SeqCst) > 0 { match w.pop() { @@ -525,7 +525,7 @@ mod tests { Thread::start(proc() { stampede(w, s, 4, 10000); }) - }).to_owned_vec(); + }).collect::<~[Thread<()>]>(); for thread in threads.move_iter() { thread.join(); @@ -556,7 +556,7 @@ mod tests { } } }) - }).to_owned_vec(); + }).collect::<~[Thread<()>]>(); let mut rng = rand::task_rng(); let mut expected = 0; -- cgit 1.4.1-3-g733a5