diff options
| author | bors <bors@rust-lang.org> | 2015-12-28 02:29:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-28 02:29:14 +0000 |
| commit | 0e9f6ecd0e38b22373e4ba1095a571cd635822bc (patch) | |
| tree | 2b0af6f8224bd18535e4937b8d35c1dbbcbc9cef /src/libstd/sys/unix/stack_overflow.rs | |
| parent | b4707ebca321e9ea9e73a3b061b2213c2a9bdf14 (diff) | |
| parent | 575f690b39559160e31930726b5629dfbd3526fa (diff) | |
| download | rust-0e9f6ecd0e38b22373e4ba1095a571cd635822bc.tar.gz rust-0e9f6ecd0e38b22373e4ba1095a571cd635822bc.zip | |
Auto merge of #30579 - dotdash:30478, r=arielb1
`auto_ref()` currently returns an Rvalue datum for the ref'd value, which is fine for thin pointers, but for fat pointers this means that once the pointer is moved out of that datum, its memory will be marked as dead. And because there is not necessarily an intermediate temporary involved we can end up marking memory as dead that is actually still used. As I don't want to break the micro-optimization for thin pointers by always returning an Lvalue datum, I decided to only do so for fat pointers. Fix #30478
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
