Skip to content

Commit 786318f

Browse files
committed
std: add #[cfg(test)] reference to extra so we can benchmark libstd.
1 parent bc2b78c commit 786318f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/std.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ they contained the following prologue:
6363
#[deny(non_camel_case_types)];
6464
#[deny(missing_doc)];
6565

66+
// Make extra accessible for benchmarking
67+
#[cfg(test)] extern mod extra(vers="0.8-pre");
68+
6669
// Make std testable by not duplicating lang items. See #2912
6770
#[cfg(test)] extern mod realstd(name = "std");
6871
#[cfg(test)] pub use kinds = realstd::kinds;

0 commit comments

Comments
 (0)