about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJames Miller <james@aatch.net>2015-12-08 15:40:25 +1300
committerJames Miller <james@aatch.net>2015-12-08 15:55:00 +1300
commitd6eb063fe8c60ff7cbd83c7a27ba4bc6a24bd174 (patch)
tree13fd695a427e86970ea7f16ee9ed2165fc58e321 /src/libstd/sys/unix/stack_overflow.rs
parenta2557d472e570559caf18d9b042cd941f5002398 (diff)
downloadrust-d6eb063fe8c60ff7cbd83c7a27ba4bc6a24bd174.tar.gz
rust-d6eb063fe8c60ff7cbd83c7a27ba4bc6a24bd174.zip
Fix unsized structs with destructors
The presence of the drop flag caused the offset calculation to be
incorrect, leading to the pointer being incorrect. This has been fixed
by calculating the offset based on the field index (and not assuming
that the field is always the last one).

However, I've also stopped the drop flag from being added to the end of
unsized structs to begin with. Since it's not actually accessed for
unsized structs, and isn't actually where we would say it is, this made
more sense.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions