File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11//! Benchmarking module.
2+ pub use std:: hint:: black_box;
3+
24use super :: {
35 event:: CompletedTest ,
46 helpers:: sink:: Sink ,
@@ -14,7 +16,6 @@ use std::cmp;
1416use std:: io;
1517use std:: panic:: { catch_unwind, AssertUnwindSafe } ;
1618use std:: sync:: { Arc , Mutex } ;
17- use std:: hint:: black_box;
1819
1920/// Manager of the benchmarking runs.
2021///
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ pub use self::ColorConfig::*;
3535pub use self :: types:: * ;
3636pub use self :: types:: TestName :: * ;
3737pub use self :: options:: { Options , ShouldPanic } ;
38+ pub use self :: bench:: { Bencher , black_box} ;
3839
3940// Module to be used by rustc to compile tests in libtest
4041pub mod test {
@@ -67,6 +68,7 @@ use std::{
6768} ;
6869
6970pub mod stats;
71+ pub mod bench;
7072mod formatters;
7173mod cli;
7274mod console;
@@ -75,7 +77,6 @@ mod helpers;
7577mod time;
7678mod types;
7779mod options;
78- mod bench;
7980mod test_result;
8081
8182#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments