Remove use of #[rustc_deprecated]
This commit is contained in:
parent
8ff5e3cf99
commit
4fbe73e0b7
77 changed files with 274 additions and 356 deletions
|
@ -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>,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue