]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #65174 - SimonSapin:zero-box, r=alexcrichton
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 19 Oct 2019 05:10:03 +0000 (07:10 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Oct 2019 05:10:03 +0000 (07:10 +0200)
commitbeec0a5db4ec2a103ad4374788ce05bd4e6b0d82
tree86930db0e8c3238370b05fe874b6311aa8f35e88
parent14f0ed64e306cfc232c3209985afb53fa2cadbb2
parent227db40a98e5bd903aa3658c16f19a3d6f694deb
Rollup merge of #65174 - SimonSapin:zero-box, r=alexcrichton

Fix zero-size uninitialized boxes

Requesting a zero-size allocation is not allowed, return a dangling pointer instead.

CC https://github.com/rust-lang/rust/issues/63291#issuecomment-538692745
src/liballoc/tests/lib.rs