diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-11-21 23:36:52 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-11-26 08:25:27 -0800 |
| commit | 749ee53c6d23ae1467568d6e0280a4f59e4e952b (patch) | |
| tree | 8ff17ad29a91e3b5d625db08d2d7d9e039ed484a /src/compiletest/compiletest.rs | |
| parent | 38efa17bb8b9c1077e7b8cd9d67da08dec3f0bda (diff) | |
| download | rust-749ee53c6d23ae1467568d6e0280a4f59e4e952b.tar.gz rust-749ee53c6d23ae1467568d6e0280a4f59e4e952b.zip | |
librustc: Make `||` lambdas not infer to `proc`s
Diffstat (limited to 'src/compiletest/compiletest.rs')
| -rw-r--r-- | src/compiletest/compiletest.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 65f733cf1de..0f39b29c60a 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -333,7 +333,7 @@ pub fn make_test_closure(config: &config, testfile: &Path) -> test::TestFn { let config = Cell::new((*config).clone()); // FIXME (#9639): This needs to handle non-utf8 paths let testfile = Cell::new(testfile.as_str().unwrap().to_owned()); - test::DynTestFn(|| { runtest::run(config.take(), testfile.take()) }) + test::DynTestFn(proc() { runtest::run(config.take(), testfile.take()) }) } pub fn make_metrics_test_closure(config: &config, testfile: &Path) -> test::TestFn { @@ -341,5 +341,7 @@ pub fn make_metrics_test_closure(config: &config, testfile: &Path) -> test::Test let config = Cell::new((*config).clone()); // FIXME (#9639): This needs to handle non-utf8 paths let testfile = Cell::new(testfile.as_str().unwrap().to_owned()); - test::DynMetricFn(|mm| { runtest::run_metrics(config.take(), testfile.take(), mm) }) + test::DynMetricFn(proc(mm) { + runtest::run_metrics(config.take(), testfile.take(), mm) + }) } |
