Don't impl builtin traits on non structs/enums
This commit is contained in:
@@ -211,6 +211,8 @@ pub struct TestDesc {
|
|||||||
pub should_fail: ShouldFail,
|
pub should_fail: ShouldFail,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for TestDesc {}
|
||||||
|
|
||||||
#[derive(Show)]
|
#[derive(Show)]
|
||||||
pub struct TestDescAndFn {
|
pub struct TestDescAndFn {
|
||||||
pub desc: TestDesc,
|
pub desc: TestDesc,
|
||||||
@@ -525,6 +527,8 @@ pub enum TestResult {
|
|||||||
TrBench(BenchSamples),
|
TrBench(BenchSamples),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for TestResult {}
|
||||||
|
|
||||||
enum OutputLocation<T> {
|
enum OutputLocation<T> {
|
||||||
Pretty(Box<term::Terminal<term::WriterWrapper> + Send>),
|
Pretty(Box<term::Terminal<term::WriterWrapper> + Send>),
|
||||||
Raw(T),
|
Raw(T),
|
||||||
@@ -978,7 +982,6 @@ enum TestEvent {
|
|||||||
|
|
||||||
pub type MonitorMsg = (TestDesc, TestResult, Vec<u8> );
|
pub type MonitorMsg = (TestDesc, TestResult, Vec<u8> );
|
||||||
|
|
||||||
unsafe impl Send for MonitorMsg {}
|
|
||||||
|
|
||||||
fn run_tests<F>(opts: &TestOpts,
|
fn run_tests<F>(opts: &TestOpts,
|
||||||
tests: Vec<TestDescAndFn> ,
|
tests: Vec<TestDescAndFn> ,
|
||||||
|
|||||||
Reference in New Issue
Block a user