]> git.lizzy.rs Git - rust.git/blobdiff - src/test/bench/task-perf-spawnalot.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / bench / task-perf-spawnalot.rs
index 3a45e88b81ac132255d555379bddd21c05168830..c5da4a4359364ea8389ce257c5c836e7b15d115c 100644 (file)
@@ -11,6 +11,7 @@
 use std::os;
 use std::task;
 use std::uint;
+use std::vec_ng::Vec;
 
 fn f(n: uint) {
     let mut i = 0u;
@@ -29,9 +30,9 @@ fn main() {
     } else if args.len() <= 1u {
         vec!(~"", ~"10")
     } else {
-        args
+        args.move_iter().collect()
     };
-    let n = from_str::<uint>(args[1]).unwrap();
+    let n = from_str::<uint>(*args.get(1)).unwrap();
     let mut i = 0u;
     while i < n { task::spawn(proc() f(n) ); i += 1u; }
 }