diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-03 20:11:38 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-04 09:39:40 +1100 |
| commit | df1ac7aa63ea89a067c57663eab035f7b83f6933 (patch) | |
| tree | f053537b23c43f7e1badcc0409e740202461bb9b /src/libstd/sync | |
| parent | eaf4c5c784637f3df8bdebc6ec21dbd4bc69420a (diff) | |
| download | rust-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/sync')
| -rw-r--r-- | src/libstd/sync/rwlock.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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}; |
