about summary refs log tree commit diff
path: root/src/test/run-pass/spawning-with-debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/spawning-with-debug.rs')
-rw-r--r--src/test/run-pass/spawning-with-debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/spawning-with-debug.rs b/src/test/run-pass/spawning-with-debug.rs
index df6bf767b9d..c8918fda9e7 100644
--- a/src/test/run-pass/spawning-with-debug.rs
+++ b/src/test/run-pass/spawning-with-debug.rs
@@ -13,9 +13,9 @@
 
 // regression test for issue #10405, make sure we don't call println! too soon.
 
-use std::task;
+use std::task::TaskBuilder;
 
 pub fn main() {
-    let mut t = task::task();
+    let mut t = TaskBuilder::new();
     t.spawn(proc() ());
 }