diff options
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 4d3d1641bd0..a873eccfb03 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -73,7 +73,8 @@ #[cfg(test)] extern crate native; #[cfg(test)] extern crate green; -// Make extra accessible for benchmarking +// Make extra and rand accessible for benchmarking/testcases +#[cfg(test)] extern crate rand; #[cfg(test)] extern crate extra = "extra"; // Make std testable by not duplicating lang items. See #2912 @@ -173,7 +174,6 @@ pub mod c_str; pub mod os; pub mod io; pub mod path; -pub mod rand; pub mod cast; pub mod fmt; pub mod cleanup; |
