1
Fork 0

Remove use of #[rustc_deprecated]

This commit is contained in:
Jacob Pratt 2022-04-07 21:20:32 -04:00
parent 8ff5e3cf99
commit 4fbe73e0b7
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
77 changed files with 274 additions and 356 deletions

View file

@ -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>,

View file

@ -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();