about summary refs log tree commit diff
path: root/library/std/src/os/unix/process.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-09 04:47:30 +0000
committerbors <bors@rust-lang.org>2022-05-09 04:47:30 +0000
commit8a2fe75d0e6e024aa434e5b9c40adb2567f362b8 (patch)
treeefdc8580272e7994c4de5ab04f16cc3087e73c64 /library/std/src/os/unix/process.rs
parentdb5b365fb0e7aa5f59d80236f520f5afc6e39ff4 (diff)
parentdac487ae2bf9f0d51b7462e9d311d67f46048643 (diff)
downloadrust-8a2fe75d0e6e024aa434e5b9c40adb2567f362b8.tar.gz
rust-8a2fe75d0e6e024aa434e5b9c40adb2567f362b8.zip
Auto merge of #95960 - jhpratt:remove-rustc_deprecated, r=compiler-errors
Remove `#[rustc_deprecated]`

This removes `#[rustc_deprecated]` and introduces diagnostics to help users to the right direction (that being `#[deprecated]`). All uses of `#[rustc_deprecated]` have been converted. CI is expected to fail initially; this requires #95958, which includes converting `stdarch`.

I plan on following up in a short while (maybe a bootstrap cycle?) removing the diagnostics, as they're only intended to be short-term.
Diffstat (limited to 'library/std/src/os/unix/process.rs')
-rw-r--r--library/std/src/os/unix/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/unix/process.rs b/library/std/src/os/unix/process.rs
index 9a6778c0e86..9dca9b4a4a3 100644
--- a/library/std/src/os/unix/process.rs
+++ b/library/std/src/os/unix/process.rs
@@ -103,7 +103,7 @@ pub trait CommandExt: Sealed {
     ///
     /// [`pre_exec`]: CommandExt::pre_exec
     #[stable(feature = "process_exec", since = "1.15.0")]
-    #[rustc_deprecated(since = "1.37.0", reason = "should be unsafe, use `pre_exec` instead")]
+    #[deprecated(since = "1.37.0", note = "should be unsafe, use `pre_exec` instead")]
     fn before_exec<F>(&mut self, f: F) -> &mut process::Command
     where
         F: FnMut() -> io::Result<()> + Send + Sync + 'static,