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

1  2 
compiler/rustc_mir/src/transform/inline.rs