Move task::task() to TaskBuilder::new()
The constructor for `TaskBuilder` is being changed to an associated function called `new` for consistency with the rest of the standard library. Closes #13666 [breaking-change]
This commit is contained in:
@@ -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() ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user