From bb9172d7b512c36f34d34b024640f030d1fde2eb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 8 Mar 2014 18:21:49 -0800 Subject: Fix fallout of removing default bounds This is all purely fallout of getting the previous commit to compile. --- src/libtest/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libtest') diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 96313c26f1f..039b118b327 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -123,7 +123,7 @@ pub enum TestFn { StaticTestFn(fn()), StaticBenchFn(fn(&mut BenchHarness)), StaticMetricFn(proc(&mut MetricMap)), - DynTestFn(proc()), + DynTestFn(proc:Send()), DynMetricFn(proc(&mut MetricMap)), DynBenchFn(~TDynBenchFn) } @@ -948,7 +948,7 @@ pub fn run_test(force_ignore: bool, #[allow(deprecated_owned_vector)] fn run_test_inner(desc: TestDesc, monitor_ch: Sender, - testfn: proc()) { + testfn: proc:Send()) { spawn(proc() { let (tx, rx) = channel(); let mut reader = ChanReader::new(rx); @@ -958,8 +958,8 @@ pub fn run_test(force_ignore: bool, DynTestName(ref name) => name.clone().into_maybe_owned(), StaticTestName(name) => name.into_maybe_owned(), }); - task.opts.stdout = Some(~stdout as ~Writer); - task.opts.stderr = Some(~stderr as ~Writer); + task.opts.stdout = Some(~stdout as ~Writer:Send); + task.opts.stderr = Some(~stderr as ~Writer:Send); let result_future = task.future_result(); task.spawn(testfn); -- cgit 1.4.1-3-g733a5