summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2014-03-22 19:18:37 -0400
committerDaniel Micay <danielmicay@gmail.com>2014-03-23 05:41:23 -0400
commitae429056ffa166a9d3a15c8641a838a7a2f5f86e (patch)
tree50c0bc32881b66d226081b4fd040532c1d908a32 /src/libstd/sync
parent7e7a5e3d3eabe0ee46474b0eb701c159a45b490f (diff)
downloadrust-ae429056ffa166a9d3a15c8641a838a7a2f5f86e.tar.gz
rust-ae429056ffa166a9d3a15c8641a838a7a2f5f86e.zip
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<T>`. For now, this involves a few workarounds for
partial type hints not completely working.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/deque.rs6
1 files changed, 3 insertions, 3 deletions
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;