about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-12-22 02:50:45 +0800
committerGitHub <noreply@github.com>2017-12-22 02:50:45 +0800
commit71c6d23612e808dc87cfe55f40e95bdc66af1806 (patch)
treefd92e6f693122eb52ad75db9eb87ed83e0bbfee3 /src/tools/compiletest
parenteff3de0927c36e6483ccb8a35c3d2da6e063de0b (diff)
parent4f04f975aee2fcbc3fc17ef7693920497a323e1c (diff)
downloadrust-71c6d23612e808dc87cfe55f40e95bdc66af1806.tar.gz
rust-71c6d23612e808dc87cfe55f40e95bdc66af1806.zip
Rollup merge of #46636 - frewsxcv:frewsxcv-fn-box, r=estebank
Replace libtest/lib.rs:FnBox with std::boxed::FnBox.

Fixes https://github.com/rust-lang/rust/issues/41810.
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 8546289fdec..80630b5e2cf 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -711,7 +711,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 |()| runtest::run(config, &testpaths)))
+    test::DynTestFn(Box::new(move || runtest::run(config, &testpaths)))
 }
 
 /// Returns (Path to GDB, GDB Version, GDB has Rust Support)