File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
//! Benchmarking module.
2
+ pub use std:: hint:: black_box;
3
+
2
4
use super :: {
3
5
event:: CompletedTest ,
4
6
helpers:: sink:: Sink ,
@@ -14,7 +16,6 @@ use std::cmp;
14
16
use std:: io;
15
17
use std:: panic:: { catch_unwind, AssertUnwindSafe } ;
16
18
use std:: sync:: { Arc , Mutex } ;
17
- use std:: hint:: black_box;
18
19
19
20
/// Manager of the benchmarking runs.
20
21
///
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ pub use self::ColorConfig::*;
35
35
pub use self :: types:: * ;
36
36
pub use self :: types:: TestName :: * ;
37
37
pub use self :: options:: { Options , ShouldPanic } ;
38
+ pub use self :: bench:: { Bencher , black_box} ;
38
39
39
40
// Module to be used by rustc to compile tests in libtest
40
41
pub mod test {
@@ -67,6 +68,7 @@ use std::{
67
68
} ;
68
69
69
70
pub mod stats;
71
+ pub mod bench;
70
72
mod formatters;
71
73
mod cli;
72
74
mod console;
@@ -75,7 +77,6 @@ mod helpers;
75
77
mod time;
76
78
mod types;
77
79
mod options;
78
- mod bench;
79
80
mod test_result;
80
81
81
82
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments