]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #76123 - tmiasko:inline-args-storage, r=wesleywiser
authorbors <bors@rust-lang.org>
Mon, 14 Sep 2020 02:13:02 +0000 (02:13 +0000)
committerbors <bors@rust-lang.org>
Mon, 14 Sep 2020 02:13:02 +0000 (02:13 +0000)
commit0b65a3d0a6a3ae8d1f35d95f18210f894a1d6c98
tree593304c71084512a1edefd78ad1f661babfde5d6
parent1eb00abf35b9bb59825edf81d05c2fa2f17cefca
parent9daf8fd5b1d369cd2f91ac919dc5d17f4fd43c0c
Auto merge of #76123 - tmiasko:inline-args-storage, r=wesleywiser

inliner: Emit storage markers for introduced arg temporaries

When introducing argument temporaries during inlining, emit storage
marker statements just before the assignment and in the beginning of
the return block.

This ensures that such temporaries will not be considered live across
yield points after inlining inside a generator.

Fixes #71793.
compiler/rustc_mir/src/transform/inline.rs