mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
b3a47d9b6b
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.