diff options
| author | bors <bors@rust-lang.org> | 2017-10-10 11:07:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-10 11:07:25 +0000 |
| commit | 0217315bf23edee385a7042b5a23b3e7e376820c (patch) | |
| tree | a081236a8c09dd20d54544f62cca217092f049d2 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 5f578dfad0dd5d43b28eff71a7e857d10c3f55fe (diff) | |
| parent | 22298b8240d40ed9b3dbdf570bccce56dfbfcd2c (diff) | |
| download | rust-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
