From df1ac7aa63ea89a067c57663eab035f7b83f6933 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Tue, 3 Feb 2015 20:11:38 +1100 Subject: Deprecate in-tree `rand`, `std::rand` and `#[derive(Rand)]`. Use the crates.io crate `rand` (version 0.1 should be a drop in replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should be a drop-in replacement). [breaking-change] --- src/libstd/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/lib.rs') diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 96aebb735ef..21197f639ad 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -142,7 +142,7 @@ extern crate core; #[macro_reexport(vec)] extern crate "collections" as core_collections; -extern crate "rand" as core_rand; +#[allow(deprecated)] extern crate "rand" as core_rand; extern crate alloc; extern crate unicode; extern crate libc; -- cgit 1.4.1-3-g733a5