mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
6dd08cbd45
Renumber return local after state transform The current implementation of `StateTransform` renames `_0` before analyzing liveness. This is inconsistent, as a `return` terminator hardcodes a read of `_0`. This PR proposes to perform such rename *after* analyzing the body, in fact after the whole transform. The implementation is not much more complicated.