diff --git a/libtest/lib.rs b/libtest/lib.rs index 1617baf..848ec70 100644 --- a/libtest/lib.rs +++ b/libtest/lib.rs @@ -1,6 +1,5 @@ //! Rust's built-in unit-test and micro-benchmarking framework. #![cfg_attr(any(unix, target_os = "cloudabi", target_os = "fuchsia"), feature(libc, rustc_private))] -#![feature(fnbox)] #![feature(set_stdio)] #![feature(panic_unwind)] #![feature(termination_trait_lib)] @@ -32,7 +31,6 @@ extern crate panic_unwind; use std::{ any::Any, borrow::Cow, - boxed::FnBox, cmp, collections::BTreeMap, env, fmt, @@ -142,7 +140,7 @@ pub trait TDynBenchFn: Send { pub enum TestFn { StaticTestFn(fn()), StaticBenchFn(fn(&mut Bencher)), - DynTestFn(Box), + DynTestFn(Box), DynBenchFn(Box), } @@ -1471,7 +1469,7 @@ pub fn run_test( desc: TestDesc, monitor_ch: Sender, nocapture: bool, - testfn: Box, + testfn: Box, concurrency: Concurrent, ) { // Buffer for capturing standard I/O