rust/library/std/src/sys
Dylan DPC 308efafc77
Rollup merge of #94572 - sunfishcode:sunfishcode/handle-or, r=joshtriplett
Use `HandleOrNull` and `HandleOrInvalid` in the Windows FFI bindings.

Use the new `HandleOrNull` and `HandleOrInvalid` types that were introduced
as part of [I/O safety] in a few functions in the Windows FFI bindings.

This factors out an `unsafe` block and two `unsafe` function calls in the
Windows implementation code.

And, it helps test `HandleOrNull` and `HandleOrInvalid`, and indeed, it
turned up a bug: `OwnedHandle` also needs to be `#[repr(transparent)]`,
as it's used inside of `HandleOrNull` and `HandleOrInvalid` which are also
`#[repr(transparent)]`.

r? ```@joshtriplett```

[I/O safety]: https://github.com/rust-lang/rust/issues/87074
2022-03-04 02:06:42 +01:00
..
common Set the allocation MIN_ALIGN for espidf to 4. 2022-01-13 21:09:20 +00:00
hermit remove compiler warnings 2022-02-15 14:03:26 +01:00
itron make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
sgx Auto merge of #91673 - ChrisDenton:path-absolute, r=Mark-Simulacrum 2022-02-13 12:03:52 +00:00
solid Rollup merge of #93847 - solid-rs:fix-kmc-solid-fs-ts, r=yaahc 2022-02-18 23:23:07 +01:00
unix Rollup merge of #92697 - the8472:cgroups, r=joshtriplett 2022-03-03 20:01:43 +01:00
unsupported make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
wasi make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00
wasm Fix a bunch of typos 2021-12-14 16:40:43 +01:00
windows Use HandleOrNull and HandleOrInvalid in the Windows FFI bindings. 2022-03-03 11:20:49 -08:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00