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:
Steven Fackler
2014-04-21 21:19:59 -07:00
parent 4401f88688
commit adeeadf49f
18 changed files with 61 additions and 61 deletions

View File

@@ -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() ());
}