diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2021-09-09 15:12:47 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2021-09-09 15:20:05 -0700 |
| commit | 3b974813871a4dee6cac3128a4e3fa5e81125464 (patch) | |
| tree | 1f3f8cdba2f3596734f1aec79c20a4e493ddbfb7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 497ee321af3b8496eaccd7af7b437f18bab81abf (diff) | |
| download | rust-3b974813871a4dee6cac3128a4e3fa5e81125464.tar.gz rust-3b974813871a4dee6cac3128a4e3fa5e81125464.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
