File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 22
22
#![ unstable( feature = "test" , issue = "27812" ) ]
23
23
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" , test( attr( deny( warnings) ) ) ) ]
24
24
#![ feature( asm) ]
25
- #![ feature( fnbox) ]
26
25
#![ cfg_attr( any( unix, target_os = "cloudabi" ) , feature( libc, rustc_private) ) ]
27
26
#![ feature( nll) ]
28
27
#![ feature( set_stdio) ]
@@ -56,7 +55,6 @@ pub use self::TestResult::*;
56
55
57
56
use std:: any:: Any ;
58
57
use std:: borrow:: Cow ;
59
- use std:: boxed:: FnBox ;
60
58
use std:: cmp;
61
59
use std:: collections:: BTreeMap ;
62
60
use std:: env;
@@ -174,7 +172,7 @@ pub trait TDynBenchFn: Send {
174
172
pub enum TestFn {
175
173
StaticTestFn ( fn ( ) ) ,
176
174
StaticBenchFn ( fn ( & mut Bencher ) ) ,
177
- DynTestFn ( Box < dyn FnBox ( ) + Send > ) ,
175
+ DynTestFn ( Box < dyn FnOnce ( ) + Send > ) ,
178
176
DynBenchFn ( Box < dyn TDynBenchFn + ' static > ) ,
179
177
}
180
178
@@ -1447,7 +1445,7 @@ pub fn run_test(
1447
1445
desc : TestDesc ,
1448
1446
monitor_ch : Sender < MonitorMsg > ,
1449
1447
nocapture : bool ,
1450
- testfn : Box < dyn FnBox ( ) + Send > ,
1448
+ testfn : Box < dyn FnOnce ( ) + Send > ,
1451
1449
concurrency : Concurrent ,
1452
1450
) {
1453
1451
// Buffer for capturing standard I/O
You can’t perform that action at this time.
0 commit comments