]> git.lizzy.rs Git - rust.git/commit
Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung
authorbors <bors@rust-lang.org>
Wed, 21 Dec 2022 23:20:04 +0000 (23:20 +0000)
committerbors <bors@rust-lang.org>
Wed, 21 Dec 2022 23:20:04 +0000 (23:20 +0000)
commit928d6566d70ef9ce21871b50197fb4c1a463731e
tree2e1bf90166b142dfe5153072a01acda872c576a4
parent98a276b5895697a862b48bcaf07b423de0b0deef
parent67b711af7fe4d00af20eca55518d0e8f3d3e39a1
Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung

Rename `assert_uninit_valid` intrinsic

It's not about "uninit" anymore but about "filling with 0x01 bytes" so the name should at least try to reflect that.

This is actually not fully correct though, as it does still panic for all uninit with `-Zstrict-init-checks`. I'm not sure what the best way is to deal with that not causing confusion. I guess we could just remove the flag? I don't think having it makes a lot of sense anymore with the direction that we have chose to go. It could be relevant again if #100423 lands so removing it may be a bit over eager.

r? `@RalfJung`
src/intrinsics/mod.rs