rust/compiler/rustc_mir_transform
bors 122cbd0438 Auto merge of #147804 - tmiasko:move-copy, r=cjgillot,saethlin
Turn moves into copies after copy propagation

Previously copy propagation presumed that there is further unspecified distinction between move operands and copy operands in assignments and propagated moves from assignments into terminators. This is inconsistent with current operational semantics.

Turn moves into copies after copy propagation to preserve existing behavior.

Fixes https://github.com/rust-lang/rust/issues/137936.
Fixes https://github.com/rust-lang/rust/issues/146423.

r? `@cjgillot`
2025-11-23 13:56:14 +00:00
..
src Auto merge of #147804 - tmiasko:move-copy, r=cjgillot,saethlin 2025-11-23 13:56:14 +00:00
Cargo.toml Introduce ValueSet. 2025-09-13 17:14:04 +00:00
messages.ftl show packed alignment in mir_transform_unaligned_packed_ref 2025-11-07 13:57:37 -07:00