diff options
Diffstat (limited to 'src/librustdoc/test.rs')
| -rw-r--r-- | src/librustdoc/test.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index 01cbd15be22..4187a348bde 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -36,8 +36,11 @@ use html::markdown; use passes; use visit_ast::RustdocVisitor; -pub fn run(input: &str, cfgs: Vec<~str>, - libs: HashSet<Path>, mut test_args: Vec<~str>) -> int { +pub fn run(input: &str, + cfgs: Vec<~str>, + libs: HashSet<Path>, + mut test_args: Vec<~str>) + -> int { let input_path = Path::new(input); let input = driver::FileInput(input_path.clone()); @@ -126,7 +129,7 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>, should_fail: bool, let old = io::stdio::set_stderr(box w1); spawn(proc() { let mut p = io::ChanReader::new(rx); - let mut err = old.unwrap_or(box io::stderr() as ~Writer:Send); + let mut err = old.unwrap_or(box io::stderr() as Box<Writer:Send>); io::util::copy(&mut p, &mut err).unwrap(); }); let emitter = diagnostic::EmitterWriter::new(box w2); |
