Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/std/src/os/windows/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,19 +469,19 @@ 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.
///
/// 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))
Expand Down
Loading