about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-09-09 15:12:47 -0700
committerJosh Stone <jistone@redhat.com>2021-11-15 16:25:34 -0800
commitf7acd9ff2f8e2b547e3d820f40635527978f293f (patch)
tree8c2d265c4199004b06fd666a4c75053583b67078 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent708d57e288d051a6238ed56039ffeac158e10e84 (diff)
downloadrust-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/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions