mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-04 05:49:19 +00:00
This commit desugars the drop and replace deriving from an assignment at MIR build, avoiding the construction of the DropAndReplace terminator (which will be removed in a followign PR) In order to retain the same error messages for replaces a new DesugaringKind::Replace variant is introduced.