File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2222#![ unstable( feature = "test" , issue = "27812" ) ]
2323#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" , test( attr( deny( warnings) ) ) ) ]
2424#![ feature( asm) ]
25- #![ feature( fnbox) ]
2625#![ cfg_attr( any( unix, target_os = "cloudabi" ) , feature( libc, rustc_private) ) ]
2726#![ feature( nll) ]
2827#![ feature( set_stdio) ]
@@ -56,7 +55,6 @@ pub use self::TestResult::*;
5655
5756use std:: any:: Any ;
5857use std:: borrow:: Cow ;
59- use std:: boxed:: FnBox ;
6058use std:: cmp;
6159use std:: collections:: BTreeMap ;
6260use std:: env;
@@ -174,7 +172,7 @@ pub trait TDynBenchFn: Send {
174172pub enum TestFn {
175173 StaticTestFn ( fn ( ) ) ,
176174 StaticBenchFn ( fn ( & mut Bencher ) ) ,
177- DynTestFn ( Box < dyn FnBox ( ) + Send > ) ,
175+ DynTestFn ( Box < dyn FnOnce ( ) + Send > ) ,
178176 DynBenchFn ( Box < dyn TDynBenchFn + ' static > ) ,
179177}
180178
@@ -1447,7 +1445,7 @@ pub fn run_test(
14471445 desc : TestDesc ,
14481446 monitor_ch : Sender < MonitorMsg > ,
14491447 nocapture : bool ,
1450- testfn : Box < dyn FnBox ( ) + Send > ,
1448+ testfn : Box < dyn FnOnce ( ) + Send > ,
14511449 concurrency : Concurrent ,
14521450 ) {
14531451 // Buffer for capturing standard I/O
You can’t perform that action at this time.
0 commit comments