about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-10 11:07:25 +0000
committerbors <bors@rust-lang.org>2017-10-10 11:07:25 +0000
commit0217315bf23edee385a7042b5a23b3e7e376820c (patch)
treea081236a8c09dd20d54544f62cca217092f049d2 /src/libstd/sys/unix/stack_overflow.rs
parent5f578dfad0dd5d43b28eff71a7e857d10c3f55fe (diff)
parent22298b8240d40ed9b3dbdf570bccce56dfbfcd2c (diff)
downloadrust-0217315bf23edee385a7042b5a23b3e7e376820c.tar.gz
rust-0217315bf23edee385a7042b5a23b3e7e376820c.zip
Auto merge of #44877 - nvzqz:box-conversions, r=alexcrichton
Improve raw Box conversions

This PR has two goals:

- Reduce use of `mem::transmute` in `Box` conversions

  I understand that `mem::transmute`-ing non `#[repr(C)]` types is implementation-defined behavior.  This may not matter within the reference implementation of Rust, but I believe it's important to remain consistent. For example, I noticed that `str::from_utf8_unchecked` went from using `mem::transmute` to using pointer casts.

- Make `Box` pointer conversions more straightforward regarding `Unique`
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions