diff options
| author | bors <bors@rust-lang.org> | 2015-06-18 19:14:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-18 19:14:52 +0000 |
| commit | 9cc0b2247509d61d6a246a5c5ad67f84b9a2d8b6 (patch) | |
| tree | c9c5e9d32ccf0c44d331dc9fe139b8d82d912b15 /src/libtest | |
| parent | f4518127636e6bffab0599ab4dad785a873c5bd8 (diff) | |
| parent | ec333380e03eb1fb94c4938db888d5bed40b8fd6 (diff) | |
| download | rust-9cc0b2247509d61d6a246a5c5ad67f84b9a2d8b6.tar.gz rust-9cc0b2247509d61d6a246a5c5ad67f84b9a2d8b6.zip | |
Auto merge of #26192 - alexcrichton:features-clean, r=aturon
This commit shards the all-encompassing `core`, `std_misc`, `collections`, and `alloc` features into finer-grained components that are much more easily opted into and tracked. This reflects the effort to push forward current unstable APIs to either stabilization or removal. Keeping track of unstable features on a much more fine-grained basis will enable the library subteam to quickly analyze a feature and help prioritize internally about what APIs should be stabilized. A few assorted APIs were deprecated along the way, but otherwise this change is just changing the feature name associated with each API. Soon we will have a dashboard for keeping track of all the unstable APIs in the standard library, and I'll also start making issues for each unstable API after performing a first-pass for stabilization.
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 8f339a599b8..0a3c350086c 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -36,15 +36,16 @@ #![feature(asm)] #![feature(box_syntax)] -#![feature(collections)] -#![feature(core)] -#![feature(rustc_private)] -#![feature(staged_api)] -#![feature(std_misc)] -#![feature(libc)] -#![feature(set_stdio)] #![feature(duration)] #![feature(duration_span)] +#![feature(fnbox)] +#![feature(iter_cmp)] +#![feature(libc)] +#![feature(rt)] +#![feature(rustc_private)] +#![feature(set_stdio)] +#![feature(slice_extras)] +#![feature(staged_api)] extern crate getopts; extern crate serialize; @@ -80,7 +81,6 @@ use std::path::PathBuf; use std::sync::mpsc::{channel, Sender}; use std::sync::{Arc, Mutex}; use std::thread; -use std::thunk::Thunk; use std::time::Duration; // to be used by rustc to compile tests in libtest @@ -153,7 +153,7 @@ pub enum TestFn { StaticTestFn(fn()), StaticBenchFn(fn(&mut Bencher)), StaticMetricFn(fn(&mut MetricMap)), - DynTestFn(Thunk<'static>), + DynTestFn(Box<FnBox() + Send>), DynMetricFn(Box<FnBox(&mut MetricMap)+Send>), DynBenchFn(Box<TDynBenchFn+'static>) } @@ -959,7 +959,7 @@ pub fn run_test(opts: &TestOpts, fn run_test_inner(desc: TestDesc, monitor_ch: Sender<MonitorMsg>, nocapture: bool, - testfn: Thunk<'static>) { + testfn: Box<FnBox() + Send>) { struct Sink(Arc<Mutex<Vec<u8>>>); impl Write for Sink { fn write(&mut self, data: &[u8]) -> io::Result<usize> { @@ -1227,7 +1227,6 @@ mod tests { TestDesc, TestDescAndFn, TestOpts, run_test, MetricMap, StaticTestName, DynTestName, DynTestFn, ShouldPanic}; - use std::thunk::Thunk; use std::sync::mpsc::channel; #[test] |
