about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-11 12:07:53 +0000
committerbors <bors@rust-lang.org>2021-11-11 12:07:53 +0000
commitd71ba74f0d51459ef10f2b73400c013c7a12d828 (patch)
treeb61b563d6d33e3526d920dccfbbac384a7a5fa4a /compiler/rustc_codegen_llvm/src/builder.rs
parent62efba8a050c64249dab942951bb28f710208bc8 (diff)
parent5d79870aec85d2a2e15b9cac808cae21b5bcbce9 (diff)
downloadrust-d71ba74f0d51459ef10f2b73400c013c7a12d828.tar.gz
rust-d71ba74f0d51459ef10f2b73400c013c7a12d828.zip
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions