mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Fix tracking issue of Windows ExitCodeExt
This commit is contained in:
parent
237339fda1
commit
52c07b9564
@ -347,7 +347,7 @@ impl ChildExt for process::Child {
|
||||
///
|
||||
/// This trait is sealed: it cannot be implemented outside the standard library.
|
||||
/// This is so that future additional methods are not breaking changes.
|
||||
#[unstable(feature = "windows_process_exit_code_from", issue = "none")]
|
||||
#[unstable(feature = "windows_process_exit_code_from", issue = "111688")]
|
||||
pub trait ExitCodeExt: Sealed {
|
||||
/// Creates a new `ExitCode` from the raw underlying `u32` return value of
|
||||
/// a process.
|
||||
@ -355,11 +355,11 @@ pub trait ExitCodeExt: Sealed {
|
||||
/// 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 = "none")]
|
||||
#[unstable(feature = "windows_process_exit_code_from", issue = "111688")]
|
||||
fn from_raw(raw: u32) -> Self;
|
||||
}
|
||||
|
||||
#[unstable(feature = "windows_process_exit_code_from", issue = "none")]
|
||||
#[unstable(feature = "windows_process_exit_code_from", issue = "111688")]
|
||||
impl ExitCodeExt for process::ExitCode {
|
||||
fn from_raw(raw: u32) -> Self {
|
||||
process::ExitCode::from_inner(From::from(raw))
|
||||
|
Loading…
Reference in New Issue
Block a user