summary refs log tree commit diff
path: root/src/libstd/collections
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-02-03 20:11:38 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-02-04 09:39:40 +1100
commitdf1ac7aa63ea89a067c57663eab035f7b83f6933 (patch)
treef053537b23c43f7e1badcc0409e740202461bb9b /src/libstd/collections
parenteaf4c5c784637f3df8bdebc6ec21dbd4bc69420a (diff)
downloadrust-df1ac7aa63ea89a067c57663eab035f7b83f6933.tar.gz
rust-df1ac7aa63ea89a067c57663eab035f7b83f6933.zip
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]
Diffstat (limited to 'src/libstd/collections')
-rw-r--r--src/libstd/collections/hash/map.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 3e2c7627dbe..449c8a9e5dc 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -1566,6 +1566,7 @@ pub struct RandomState {
 impl RandomState {
     /// Construct a new `RandomState` that is initialized with random keys.
     #[inline]
+    #[allow(deprecated)]
     pub fn new() -> RandomState {
         let mut r = rand::thread_rng();
         RandomState { k0: r.gen(), k1: r.gen() }