File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ const WARMUP_N: usize = 100;
55const BENCH_N : usize = 1000 ;
66
77fn main ( ) {
8+ if cfg ! ( miri) {
9+ // Don't benchmark Miri...
10+ // (Due to bootstrap quirks, this gets picked up by `x.py miri library/alloc --no-doc`.)
11+ return ;
12+ }
813 let a: VecDeque < i32 > = ( 0 ..VECDEQUE_LEN ) . collect ( ) ;
914 let b: VecDeque < i32 > = ( 0 ..VECDEQUE_LEN ) . collect ( ) ;
1015
Original file line number Diff line number Diff line change 1+ //! Grep bootstrap for `MIRI_REPLACE_LIBRS_IF_NOT_TEST` to learn what this is about.
2+ #![ no_std]
3+ extern crate alloc as realalloc;
4+ pub use realalloc:: * ;
Original file line number Diff line number Diff line change 1+ //! Grep bootstrap for `MIRI_REPLACE_LIBRS_IF_NOT_TEST` to learn what this is about.
2+ #![ no_std]
3+ extern crate core as realcore;
4+ pub use realcore:: * ;
Original file line number Diff line number Diff line change 1+ //! Grep bootstrap for `MIRI_REPLACE_LIBRS_IF_NOT_TEST` to learn what this is about.
2+ #![ no_std]
3+ extern crate std as realstd;
4+ pub use realstd:: * ;
You can’t perform that action at this time.
0 commit comments