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>2018-12-01 07:06:17 +0000
committerbors <bors@rust-lang.org>2018-12-01 07:06:17 +0000
commitd3ed34824c31f303b98855fee6fc9213dff1f295 (patch)
tree25e7988d6f70275884d712e4b01fa3dead3c6e75 /src/libstd/sys/unix/stack_overflow.rs
parentaef4dbfaa7df8221cb4e99cbda1299b47b1c2aca (diff)
parentd9de72fcac7cfd90742a8fa8e4f6c0efd664ecde (diff)
downloadrust-d3ed34824c31f303b98855fee6fc9213dff1f295.tar.gz
rust-d3ed34824c31f303b98855fee6fc9213dff1f295.zip
Auto merge of #56165 - RalfJung:drop-glue-type, r=eddyb,nikomatsakis
drop glue takes in mutable references, it should reflect that in its type

When drop glue begins, it should retag, like all functions taking references do. But to do that, it needs to take the reference at a proper type: `&mut T`, not `*mut T`.

Failing to retag can mean that the memory the reference points to remains frozen, and `EscapeToRaw` on a frozen location is a NOP, meaning later mutations cause a Stacked Borrows violation.

Cc @nikomatsakis @Gankro because Stacked Borrows
Cc @eddyb for the changes to miri argument passing (the intention is to allow passing `*mut [u8]` when `&mut [u8]` is expected and vice versa)
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions