rust/compiler/rustc_mir_transform
Matthias Krüger 6dd08cbd45
Rollup merge of #147533 - cjgillot:coro-late-renumber, r=davidtwco
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.
2025-10-13 16:54:13 +02:00
..
src Rollup merge of #147533 - cjgillot:coro-late-renumber, r=davidtwco 2025-10-13 16:54:13 +02:00
Cargo.toml Introduce ValueSet. 2025-09-13 17:14:04 +00:00
messages.ftl Suggest unit struct and constants. 2025-10-11 20:50:21 +00:00