From 469104e797100358e0bf318a4f90ceec2892545b Mon Sep 17 00:00:00 2001 From: malezjaa Date: Tue, 20 Oct 2026 21:46:57 +0200 Subject: [PATCH] stabilize ExitCodeExt for Windows --- library/std/src/os/windows/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/std/src/os/windows/process.rs b/library/std/src/os/windows/process.rs index 613ada53ac25e..f4b60f2ed8eca 100644 --- a/library/std/src/os/windows/process.rs +++ b/library/std/src/os/windows/process.rs @@ -469,7 +469,7 @@ impl ChildExt for process::Child { } /// Windows-specific extensions to [`process::ExitCode`]. -#[unstable(feature = "windows_process_exit_code_from", issue = "111688")] +#[stable(feature = "windows_process_exit_code_from", since = "CURRENT_RUSTC_VERSION")] pub impl(self) trait ExitCodeExt { /// Creates a new `ExitCode` from the raw underlying `u32` return value of /// a process. @@ -477,11 +477,11 @@ pub impl(self) trait ExitCodeExt { /// The exit code should not be 259, as this conflicts with the `STILL_ACTIVE` /// macro returned from the `GetExitCodeProcess` function to signal that the /// process has yet to run to completion. - #[unstable(feature = "windows_process_exit_code_from", issue = "111688")] + #[stable(feature = "windows_process_exit_code_from", since = "CURRENT_RUSTC_VERSION")] fn from_raw(raw: u32) -> Self; } -#[unstable(feature = "windows_process_exit_code_from", issue = "111688")] +#[stable(feature = "windows_process_exit_code_from", since = "CURRENT_RUSTC_VERSION")] impl ExitCodeExt for process::ExitCode { fn from_raw(raw: u32) -> Self { process::ExitCode::from_inner(From::from(raw))