rust/library/std/src/os/windows
bors d71ba74f0d Auto merge of #88798 - sunfishcode:sunfishcode/windows-null-handles, r=joshtriplett
Fix assertion failures in `OwnedHandle` with `windows_subsystem`.

As discussed in #88576, raw handle values in Windows can be null, such
as in `windows_subsystem` mode, or when consoles are detached from a
process. So, don't use `NonNull` to hold them, don't assert that they're
not null, and remove `OwnedHandle`'s `repr(transparent)`. Introduce a
new `HandleOrNull` type, similar to `HandleOrInvalid`, to cover the FFI
use case.

r? `@joshtriplett`
2021-11-11 12:07:53 +00:00
..
io Document the valid values for HandleOrNull and HandleOrInvalid. 2021-10-05 14:24:40 -07:00
ffi.rs modify std::os docs to be more consistent 2021-09-17 23:23:21 +05:30
fs.rs modify std::os docs to be more consistent 2021-09-17 23:23:21 +05:30
mod.rs modify std::os docs to be more consistent 2021-09-17 23:23:21 +05:30
process.rs modify std::os docs to be more consistent 2021-09-17 23:23:21 +05:30
raw.rs Suppress some cfg from being shown in the stdlib docs 2021-10-05 18:15:29 +02:00
thread.rs modify std::os docs to be more consistent 2021-09-17 23:23:21 +05:30