diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 13:30:51 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 13:30:51 -0700 |
| commit | 9bb05fd41403c6fc28b82e8eff35f8791876ac18 (patch) | |
| tree | 735ecba6abbc1915e7298dae72cbe034b7cf9d88 /src/compiletest | |
| parent | e9bacbaa2c9c88aaecf07ee30f02d08a1999e5c6 (diff) | |
| parent | 8eed73feb659633ef809e2af3399e53d5de6c6fa (diff) | |
| download | rust-9bb05fd41403c6fc28b82e8eff35f8791876ac18.tar.gz rust-9bb05fd41403c6fc28b82e8eff35f8791876ac18.zip | |
rollup merge of #23939: nikomatsakis/fn-box
Conflicts: src/liballoc/boxed.rs
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 7fd09f9e1f5..f00ff9bcbe5 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -31,7 +31,6 @@ extern crate log; use std::env; use std::fs; use std::path::{Path, PathBuf}; -use std::thunk::Thunk; use getopts::{optopt, optflag, reqopt}; use common::Config; use common::{Pretty, DebugInfoGdb, DebugInfoLldb, Codegen}; @@ -351,7 +350,7 @@ pub fn make_test_name(config: &Config, testfile: &Path) -> test::TestName { pub fn make_test_closure(config: &Config, testfile: &Path) -> test::TestFn { let config = (*config).clone(); let testfile = testfile.to_path_buf(); - test::DynTestFn(Thunk::new(move || { + test::DynTestFn(Box::new(move || { runtest::run(config, &testfile) })) } |
