mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
std: add #[cfg(test)] reference to extra so we can benchmark libstd.
This commit is contained in:
@@ -63,6 +63,9 @@
|
||||
#[deny(non_camel_case_types)];
|
||||
#[deny(missing_doc)];
|
||||
|
||||
// Make extra accessible for benchmarking
|
||||
#[cfg(test)] extern mod extra(vers="0.8-pre");
|
||||
|
||||
// Make std testable by not duplicating lang items. See #2912
|
||||
#[cfg(test)] extern mod realstd(name = "std");
|
||||
#[cfg(test)] pub use kinds = realstd::kinds;
|
||||
|
||||
Reference in New Issue
Block a user