Skip to content

Commit a702558

Browse files
committed
Don't impl builtin traits on non structs/enums
1 parent 896cb36 commit a702558

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libtest/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ pub struct TestDesc {
211211
pub should_fail: ShouldFail,
212212
}
213213

214+
unsafe impl Send for TestDesc {}
215+
214216
#[derive(Show)]
215217
pub struct TestDescAndFn {
216218
pub desc: TestDesc,
@@ -525,6 +527,8 @@ pub enum TestResult {
525527
TrBench(BenchSamples),
526528
}
527529

530+
unsafe impl Send for TestResult {}
531+
528532
enum OutputLocation<T> {
529533
Pretty(Box<term::Terminal<term::WriterWrapper> + Send>),
530534
Raw(T),
@@ -978,7 +982,6 @@ enum TestEvent {
978982

979983
pub type MonitorMsg = (TestDesc, TestResult, Vec<u8> );
980984

981-
unsafe impl Send for MonitorMsg {}
982985

983986
fn run_tests<F>(opts: &TestOpts,
984987
tests: Vec<TestDescAndFn> ,

0 commit comments

Comments
 (0)