Don't impl builtin traits on non structs/enums
This commit is contained in:
parent
896cb36eca
commit
a7025582cc
@ -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<T> {
|
||||
Pretty(Box<term::Terminal<term::WriterWrapper> + Send>),
|
||||
Raw(T),
|
||||
@ -978,7 +982,6 @@ enum TestEvent {
|
||||
|
||||
pub type MonitorMsg = (TestDesc, TestResult, Vec<u8> );
|
||||
|
||||
unsafe impl Send for MonitorMsg {}
|
||||
|
||||
fn run_tests<F>(opts: &TestOpts,
|
||||
tests: Vec<TestDescAndFn> ,
|
||||
|
Loading…
Reference in New Issue
Block a user