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/thread | |
| parent | 8ff5e3cf99f93f80b7d0c1cf2a6cf859a8dda563 (diff) | |
| download | rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.tar.gz rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.zip | |
Remove use of `#[rustc_deprecated]`
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 5309dc47ac4..803181c90b0 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -786,7 +786,7 @@ pub fn panicking() -> bool { /// thread::sleep_ms(2000); /// ``` #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::thread::sleep`")] +#[deprecated(since = "1.6.0", note = "replaced by `std::thread::sleep`")] pub fn sleep_ms(ms: u32) { sleep(Duration::from_millis(ms as u64)) } @@ -940,7 +940,7 @@ pub fn park() { /// /// See the [park documentation][`park`] for more detail. #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_deprecated(since = "1.6.0", reason = "replaced by `std::thread::park_timeout`")] +#[deprecated(since = "1.6.0", note = "replaced by `std::thread::park_timeout`")] pub fn park_timeout_ms(ms: u32) { park_timeout(Duration::from_millis(ms as u64)) } |
