about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-10-05 09:50:15 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-10-06 09:02:33 -0700
commit0714024c991bc6a02017fa0b7747aee67877d53f (patch)
treef93eb7f12c83f5e270d0d1a7230263cc2540b462 /src/tools/compiletest
parent7a26aeca77bcf334747eddb630e3b9475149b7f5 (diff)
downloadrust-0714024c991bc6a02017fa0b7747aee67877d53f.tar.gz
rust-0714024c991bc6a02017fa0b7747aee67877d53f.zip
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
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index ff91ab7c70b..b81258bd6d7 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -464,7 +464,7 @@ pub fn make_test_name(config: &Config, testpaths: &TestPaths) -> test::TestName
 pub fn make_test_closure(config: &Config, testpaths: &TestPaths) -> test::TestFn {
     let config = config.clone();
     let testpaths = testpaths.clone();
-    test::DynTestFn(Box::new(move || {
+    test::DynTestFn(Box::new(move |()| {
         runtest::run(config, &testpaths)
     }))
 }