1
Fork 0

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:
Alex Crichton 2016-10-05 09:50:15 -07:00
parent 7a26aeca77
commit 0714024c99
3 changed files with 67 additions and 67 deletions

View file

@ -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,