std: Minor cleanup to libtest
* Don't spawn two threads for all tests, just one now that `catch_unwind` is stable. * Remove usage of the unstable `box` keyword * Remove usage of the unstable `FnBox` trait
This commit is contained in:
parent
7a26aeca77
commit
0714024c99
3 changed files with 67 additions and 67 deletions
|
@ -443,7 +443,7 @@ impl Collector {
|
|||
// compiler failures are test failures
|
||||
should_panic: testing::ShouldPanic::No,
|
||||
},
|
||||
testfn: testing::DynTestFn(box move|| {
|
||||
testfn: testing::DynTestFn(box move |()| {
|
||||
runtest(&test,
|
||||
&cratename,
|
||||
cfgs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue