about summary refs log tree commit diff
path: root/tests/mir-opt/basic_assignment.rs
diff options
context:
space:
mode:
authorGiacomo Pasini <giacomo@status.im>2023-02-08 22:29:52 +0100
committerGiacomo Pasini <giacomo@status.im>2023-03-03 16:33:11 +0100
commitb3a47d9b6b26adebe9ce0e24c7efb26c6380d50a (patch)
treeac5e0d9d46bc053d00fe99b787af4480d0bbf1f6 /tests/mir-opt/basic_assignment.rs
parent13471d3b2046cce78181dde6cfc146c09f55e29e (diff)
downloadrust-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.rs1
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