diff options
| author | Giacomo Pasini <giacomo@status.im> | 2023-02-08 22:29:52 +0100 |
|---|---|---|
| committer | Giacomo Pasini <giacomo@status.im> | 2023-03-03 16:33:11 +0100 |
| commit | b3a47d9b6b26adebe9ce0e24c7efb26c6380d50a (patch) | |
| tree | ac5e0d9d46bc053d00fe99b787af4480d0bbf1f6 /tests/mir-opt/basic_assignment.rs | |
| parent | 13471d3b2046cce78181dde6cfc146c09f55e29e (diff) | |
| download | rust-b3a47d9b6b26adebe9ce0e24c7efb26c6380d50a.tar.gz rust-b3a47d9b6b26adebe9ce0e24c7efb26c6380d50a.zip | |
Desugars drop and replace at MIR build
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.
Diffstat (limited to 'tests/mir-opt/basic_assignment.rs')
| -rw-r--r-- | tests/mir-opt/basic_assignment.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/mir-opt/basic_assignment.rs b/tests/mir-opt/basic_assignment.rs index ac350271e9f..2a52323c2ce 100644 --- a/tests/mir-opt/basic_assignment.rs +++ b/tests/mir-opt/basic_assignment.rs @@ -1,5 +1,6 @@ // this tests move up progration, which is not yet implemented +// EMIT_MIR basic_assignment.main.ElaborateDrops.diff // EMIT_MIR basic_assignment.main.SimplifyCfg-initial.after.mir // Check codegen for assignments (`a = b`) where the left-hand-side is |
