From a7025582cc9c89ee37e38bcdf94482b75cf37cd8 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Thu, 15 Jan 2015 01:40:09 +0100 Subject: [PATCH] Don't impl builtin traits on non structs/enums --- src/libtest/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index c4cb53d6cb7b..99b93b622c09 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -211,6 +211,8 @@ pub struct TestDesc { pub should_fail: ShouldFail, } +unsafe impl Send for TestDesc {} + #[derive(Show)] pub struct TestDescAndFn { pub desc: TestDesc, @@ -525,6 +527,8 @@ pub enum TestResult { TrBench(BenchSamples), } +unsafe impl Send for TestResult {} + enum OutputLocation { Pretty(Box + Send>), Raw(T), @@ -978,7 +982,6 @@ enum TestEvent { pub type MonitorMsg = (TestDesc, TestResult, Vec ); -unsafe impl Send for MonitorMsg {} fn run_tests(opts: &TestOpts, tests: Vec ,