std: add #[cfg(test)] reference to extra so we can benchmark libstd.

This commit is contained in:
Graydon Hoare 2013-07-22 09:49:04 -07:00
parent bc2b78ca2c
commit 786318f61b

View File

@ -63,6 +63,9 @@ they contained the following prologue:
#[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;