diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-02 11:23:04 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-12 11:31:05 +1100 |
| commit | 6fa4bbeed425ae99d15322fbaa05d1abeae6547f (patch) | |
| tree | 17f9edde3db9c624e476ac2f6c585792ddb1890b /src/libstd/lib.rs | |
| parent | 74bfa7108a62c053fdeae2bb093f8035e19e2ef2 (diff) | |
| download | rust-6fa4bbeed425ae99d15322fbaa05d1abeae6547f.tar.gz rust-6fa4bbeed425ae99d15322fbaa05d1abeae6547f.zip | |
std: Move rand to librand.
This functionality is not super-core and so doesn't need to be included in std. It's possible that std may need rand (it does a little bit now, for io::test) in which case the functionality required could be moved to a secret hidden module and reexposed by librand. Unfortunately, using #[deprecated] here is hard: there's too much to mock to make it feasible, since we have to ensure that programs still typecheck to reach the linting phase.
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; |
