diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2021-09-09 15:12:47 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-11-15 16:25:34 -0800 |
| commit | f7acd9ff2f8e2b547e3d820f40635527978f293f (patch) | |
| tree | 8c2d265c4199004b06fd666a4c75053583b67078 /src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff | |
| parent | 708d57e288d051a6238ed56039ffeac158e10e84 (diff) | |
| download | rust-f7acd9ff2f8e2b547e3d820f40635527978f293f.tar.gz rust-f7acd9ff2f8e2b547e3d820f40635527978f293f.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. (cherry picked from commit 3b974813871a4dee6cac3128a4e3fa5e81125464)
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
