diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-04-07 21:20:32 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-04-14 01:33:13 -0400 |
| commit | 4fbe73e0b79afb9e2b352438bac743104f0d2ba6 (patch) | |
| tree | 84f8597c04edc4113e8b26f9974ee7d9b5566639 /library/std/src/sync | |
| parent | 8ff5e3cf99f93f80b7d0c1cf2a6cf859a8dda563 (diff) | |
| download | rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.tar.gz rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.zip | |
Remove use of `#[rustc_deprecated]`
Diffstat (limited to 'library/std/src/sync')
| -rw-r--r-- | library/std/src/sync/condvar.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sync/once.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sync/condvar.rs b/library/std/src/sync/condvar.rs index b41918ec1cf..7ff2f330f8a 100644 --- a/library/std/src/sync/condvar.rs +++ b/library/std/src/sync/condvar.rs @@ -303,7 +303,7 @@ impl Condvar { /// } /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::sync::Condvar::wait_timeout`")] + #[deprecated(since = "1.6.0", note = "replaced by `std::sync::Condvar::wait_timeout`")] pub fn wait_timeout_ms<'a, T>( &self, guard: MutexGuard<'a, T>, diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs index d2dd4c075d2..a7feea58859 100644 --- a/library/std/src/sync/once.rs +++ b/library/std/src/sync/once.rs @@ -152,9 +152,9 @@ pub struct OnceState { /// static START: Once = ONCE_INIT; /// ``` #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_deprecated( +#[deprecated( since = "1.38.0", - reason = "the `new` function is now preferred", + note = "the `new` function is now preferred", suggestion = "Once::new()" )] pub const ONCE_INIT: Once = Once::new(); |
