diff options
| author | bors <bors@rust-lang.org> | 2017-11-26 16:38:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-11-26 16:38:36 +0000 |
| commit | 71b21ed0daa9d81d44f2168d16b00f681bb7286a (patch) | |
| tree | 91e56e01f1e4aef95fb8d015e3734751534efa13 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 0400312e173f3247f84890222134b9a86e6b3d8f (diff) | |
| parent | 5eed95ede9d68e9c18c5798aad60b5f94b8a213b (diff) | |
| download | rust-71b21ed0daa9d81d44f2168d16b00f681bb7286a.tar.gz rust-71b21ed0daa9d81d44f2168d16b00f681bb7286a.zip | |
Auto merge of #46253 - eddyb:return-aliasing, r=nagisa
rustc_trans: don't apply noalias on returned references. In #45225 frozen returned `&T` were accidentally maked `noalias`, unlike `&mut T`. Return value `noalias` is only sound for functions that return dynamic allocations, e.g. `Box`, and using it on anything else can lead to miscompilation, as LLVM assumes certain usage patterns. Fixes #46239.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
