diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-15 11:01:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-15 11:01:22 -0700 |
| commit | b7cf2cbd78ea5e5f6a4514cb631942dc6516c6f4 (patch) | |
| tree | a633363043faec7263a0da680c145827c5190d29 /src/libstd/sys/windows | |
| parent | 47f6a9d797e5d0a6e35fac2a903f47ad65bb4c4a (diff) | |
| parent | 538f15776ba1629ff77e5e78e62c0048f8648498 (diff) | |
| download | rust-b7cf2cbd78ea5e5f6a4514cb631942dc6516c6f4.tar.gz rust-b7cf2cbd78ea5e5f6a4514cb631942dc6516c6f4.zip | |
Rollup merge of #74291 - regexident:from-docs, r=GuillaumeGomez
Added docs for `From<c_int>` for `ExitStatus` Partially addresses https://github.com/rust-lang/rust/issues/51430
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index 77f9a5c9dc7..7d6d4775eec 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -378,6 +378,7 @@ impl ExitStatus { } } +/// Converts a raw `c::DWORD` to a type-safe `ExitStatus` by wrapping it without copying. impl From<c::DWORD> for ExitStatus { fn from(u: c::DWORD) -> ExitStatus { ExitStatus(u) |
