]> git.lizzy.rs Git - rust.git/commitdiff
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)
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


Trivial merge