about summary refs log tree commit diff
path: root/src/test/bench/task-perf-spawnalot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/bench/task-perf-spawnalot.rs')
-rw-r--r--src/test/bench/task-perf-spawnalot.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/task-perf-spawnalot.rs b/src/test/bench/task-perf-spawnalot.rs
index 279b3fa432a..d10d9cb460f 100644
--- a/src/test/bench/task-perf-spawnalot.rs
+++ b/src/test/bench/task-perf-spawnalot.rs
@@ -10,12 +10,12 @@
 
 use std::os;
 use std::env;
-use std::thread::Thread;
+use std::thread;
 
 fn f(n: uint) {
     let mut i = 0u;
     while i < n {
-        let _ = Thread::scoped(move|| g()).join();
+        let _ = thread::spawn(move|| g()).join();
         i += 1u;
     }
 }
@@ -33,5 +33,5 @@ fn main() {
     };
     let n = args[1].parse().unwrap();
     let mut i = 0u;
-    while i < n { Thread::spawn(move|| f(n) ); i += 1u; }
+    while i < n { thread::spawn(move|| f(n) ); i += 1u; }
 }