about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-07 17:27:35 +0100
committerGitHub <noreply@github.com>2020-03-07 17:27:35 +0100
commit963b0aa541a68d9ffceb6685f785f9ae485964f7 (patch)
tree24774445fb5edb19f438d78aef8f60f5814aae11 /src/libstd/sys/unix/stack_overflow.rs
parentf1f4864de3ecfa106d03f2172f2c80edf8eeb02c (diff)
parent09d3ba13afb8fdf449928b160431787e2d259db1 (diff)
downloadrust-963b0aa541a68d9ffceb6685f785f9ae485964f7.tar.gz
rust-963b0aa541a68d9ffceb6685f785f9ae485964f7.zip
Rollup merge of #69794 - TimDiekmann:dangling, r=Amanieu
Add `Layout::dangling()` to return a well-aligned `NonNull<u8>`

Adds a convenient function to `Layout` to create a `NonNull<u8>` out of a layout to be returned on ZST allocations.

This is the first item on the roadmap to support ZSTs in `AllocRef`: https://github.com/rust-lang/wg-allocators/issues/38#issuecomment-595861542

r? @Amanieu
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions