diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
| commit | a613059e3fcfb751f7664f67a4a6c99faf436483 (patch) | |
| tree | bf18260a765345837e95ddeb80f0e91f04a4a131 /src/libstd/sync | |
| parent | 2228bacd62ca8970a7a59401e78d0c5a34fc0f87 (diff) | |
| download | rust-a613059e3fcfb751f7664f67a4a6c99faf436483.tar.gz rust-a613059e3fcfb751f7664f67a4a6c99faf436483.zip | |
Rename #[deprecated] to #[rustc_deprecated]
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/condvar.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs index 389c9c4a066..d817a261f7c 100644 --- a/src/libstd/sync/condvar.rs +++ b/src/libstd/sync/condvar.rs @@ -166,7 +166,7 @@ impl Condvar { /// Like `wait`, the lock specified will be re-acquired when this function /// returns, regardless of whether the timeout elapsed or not. #[stable(feature = "rust1", since = "1.0.0")] - #[deprecated(since = "1.6.0", reason = "replaced by `std::sync::Condvar::wait_timeout`")] + #[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::sync::Condvar::wait_timeout`")] #[allow(deprecated)] pub fn wait_timeout_ms<'a, T>(&self, guard: MutexGuard<'a, T>, ms: u32) -> LockResult<(MutexGuard<'a, T>, bool)> { @@ -290,7 +290,8 @@ impl StaticCondvar { #[unstable(feature = "static_condvar", reason = "may be merged with Condvar in the future", issue = "27717")] - #[deprecated(since = "1.6.0", reason = "replaced by `std::sync::StaticCondvar::wait_timeout`")] + #[rustc_deprecated(since = "1.6.0", + reason = "replaced by `std::sync::StaticCondvar::wait_timeout`")] pub fn wait_timeout_ms<'a, T>(&'static self, guard: MutexGuard<'a, T>, ms: u32) -> LockResult<(MutexGuard<'a, T>, bool)> { match self.wait_timeout(guard, Duration::from_millis(ms as u64)) { |
