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/sync/rwlock.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 95b570dd9c8..63ca5b5669a 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -383,6 +383,8 @@ impl<'a, T> Drop for RwLockWriteGuard<'a, T> { #[cfg(test)] mod tests { + #![allow(deprecated)] // rand + use prelude::v1::*; use rand::{self, Rng}; -- cgit 1.4.1-3-g733a5