diff options
| author | bors <bors@rust-lang.org> | 2021-11-11 12:07:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-11 12:07:53 +0000 |
| commit | d71ba74f0d51459ef10f2b73400c013c7a12d828 (patch) | |
| tree | b61b563d6d33e3526d920dccfbbac384a7a5fa4a /compiler/rustc_codegen_llvm/src | |
| parent | 62efba8a050c64249dab942951bb28f710208bc8 (diff) | |
| parent | 5d79870aec85d2a2e15b9cac808cae21b5bcbce9 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
