]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53536 - RalfJung:array-drop, r=eddyb
authorbors <bors@rust-lang.org>
Wed, 22 Aug 2018 15:29:07 +0000 (15:29 +0000)
committerbors <bors@rust-lang.org>
Wed, 22 Aug 2018 15:29:07 +0000 (15:29 +0000)
commitc24f27c0452a9aaecfb70d225d846df2e517385f
tree03b4d564bb8a380c24e270eb2cf1c388073547b3
parent329dde57fddee4d5fa0ae374cb5c8474459dfb0c
parent0447b5091ce6290e5584e6897942fb4ee243a1c9
Auto merge of #53536 - RalfJung:array-drop, r=eddyb

fix array drop glue: properly turn raw ptr into reference

Discovered while working on https://github.com/rust-lang/rust/pull/53424: The generated drop glue uses an assignment `ptr = cur` where `ptr` is a reference and `cur` a raw pointer. This is not well-formed MIR.

Do we have MIR sanity checks that run on the drop glue and should have caught this?

r? @eddyb