]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #66059 - RalfJung:panic-on-non-zero, r=eddyb
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 11 Mar 2020 09:36:16 +0000 (10:36 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 09:36:16 +0000 (10:36 +0100)
commita7c2eef2aeb23f52efc4a4bfd240292d43a61798
treea794d20513cc74cde83c05adb18370dc879e629b
parent15812785344d913d779d9738fe3cca8de56f71d5
parenta09c33e36205991bb633a848d1e9c7604ae43ce8
Rollup merge of #66059 - RalfJung:panic-on-non-zero, r=eddyb

mem::zeroed/uninit: panic on types that do not permit zero-initialization

r? @eddyb @oli-obk

Cc https://github.com/rust-lang/rust/issues/62825

Also see [this summary comment](https://github.com/rust-lang/rust/pull/66059#issuecomment-586734747)
src/libcore/intrinsics.rs
src/libcore/mem/mod.rs
src/librustc/ty/layout.rs
src/librustc_target/abi/mod.rs