rust/tests/ui/lint/large_assignments
Tomasz Miąsko 6bd1a031ab 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.
2025-11-20 19:23:10 +01:00
..
copy_into_box_rc_arc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy_into_box_rc_arc.stderr large_assignments: Allow moves into functions 2024-02-10 16:17:00 +01:00
copy_into_fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy_into_fn.stderr large_assignments: Lint on specific large args passed to functions 2024-01-15 19:07:12 +01:00
inline_mir.rs Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
inline_mir.stderr Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
large_future.attribute.stderr
large_future.option.stderr
large_future.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move_into_box_rc_arc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move_into_box_rc_arc.stderr large_assignments: Allow moves into functions 2024-02-10 16:17:00 +01:00
move_into_fn.rs Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
move_into_fn.stderr Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00