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

@@ -60,7 +60,7 @@ use std::io;
use std::os;
use std::str;
use std::strbuf::StrBuf;
use std::task;
use std::task::TaskBuilder;
// to be used by rustc to compile tests in libtest
pub mod test {
@@ -961,7 +961,7 @@ pub fn run_test(force_ignore: bool,
let mut reader = ChanReader::new(rx);
let stdout = ChanWriter::new(tx.clone());
let stderr = ChanWriter::new(tx);
let mut task = task::task().named(match desc.name {
let mut task = TaskBuilder::new().named(match desc.name {
DynTestName(ref name) => name.clone().into_maybe_owned(),
StaticTestName(name) => name.into_maybe_owned(),
});