mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

interpret: fix overlapping aggregate initialization This fixes the problem pointed out by ````@saethlin```` in https://github.com/rust-lang/rust/issues/146383#issuecomment-3273224645. Also clarify when exactly current de-facto MIR semantics allow overlap of the LHS and RHS in an assignment.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.