summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:48 +0000
commitef24de24a82fe681581cc130f342363c47c0969a (patch)
tree0d494f7e1a38b95c92426f58fe6eaa877303a86c /tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff
parentReleasing progress-linux version 1.74.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-ef24de24a82fe681581cc130f342363c47c0969a.tar.xz
rustc-ef24de24a82fe681581cc130f342363c47c0969a.zip
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff')
-rw-r--r--tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff41
1 files changed, 20 insertions, 21 deletions
diff --git a/tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff b/tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff
index b57fe348c..55d2629a5 100644
--- a/tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff
+++ b/tests/mir-opt/issue_41888.main.ElaborateDrops.panic-abort.diff
@@ -10,9 +10,8 @@
let mut _5: isize;
+ let mut _7: bool;
+ let mut _8: bool;
-+ let mut _9: bool;
++ let mut _9: isize;
+ let mut _10: isize;
-+ let mut _11: isize;
scope 1 {
debug e => _1;
scope 2 {
@@ -24,7 +23,6 @@
bb0: {
+ _7 = const false;
+ _8 = const false;
-+ _9 = const false;
StorageLive(_1);
StorageLive(_2);
_2 = cond() -> [return: bb1, unwind: bb11];
@@ -47,7 +45,6 @@
bb3: {
+ _7 = const true;
+ _8 = const true;
-+ _9 = const true;
_1 = move _3;
- drop(_3) -> [return: bb5, unwind: bb11];
+ goto -> bb5;
@@ -56,7 +53,6 @@
bb4 (cleanup): {
+ _7 = const true;
+ _8 = const true;
-+ _9 = const true;
_1 = move _3;
- drop(_3) -> [return: bb11, unwind terminate(cleanup)];
+ goto -> bb11;
@@ -64,13 +60,13 @@
bb5: {
StorageDead(_3);
+ PlaceMention(_1);
_5 = discriminant(_1);
switchInt(move _5) -> [0: bb6, otherwise: bb7];
}
bb6: {
StorageLive(_6);
-+ _9 = const false;
_6 = move ((_1 as F).0: K);
_0 = const ();
StorageDead(_6);
@@ -90,13 +86,12 @@
bb9: {
StorageDead(_2);
- drop(_1) -> [return: bb10, unwind: bb12];
-+ goto -> bb18;
++ goto -> bb19;
}
bb10: {
+ _7 = const false;
+ _8 = const false;
-+ _9 = const false;
StorageDead(_1);
return;
}
@@ -116,33 +111,37 @@
+ }
+
+ bb14 (cleanup): {
-+ goto -> bb12;
++ drop(((_1 as F).0: K)) -> [return: bb12, unwind terminate(cleanup)];
+ }
+
-+ bb15: {
-+ drop(_1) -> [return: bb13, unwind: bb12];
++ bb15 (cleanup): {
++ switchInt(_7) -> [0: bb12, otherwise: bb14];
+ }
+
-+ bb16 (cleanup): {
-+ drop(_1) -> [return: bb12, unwind terminate(cleanup)];
++ bb16: {
++ drop(_1) -> [return: bb13, unwind: bb12];
+ }
+
-+ bb17: {
-+ _10 = discriminant(_1);
-+ switchInt(move _10) -> [0: bb13, otherwise: bb15];
++ bb17 (cleanup): {
++ drop(_1) -> [return: bb12, unwind terminate(cleanup)];
+ }
+
+ bb18: {
-+ switchInt(_7) -> [0: bb13, otherwise: bb17];
++ _9 = discriminant(_1);
++ switchInt(move _9) -> [0: bb13, otherwise: bb16];
+ }
+
-+ bb19 (cleanup): {
-+ _11 = discriminant(_1);
-+ switchInt(move _11) -> [0: bb14, otherwise: bb16];
++ bb19: {
++ switchInt(_7) -> [0: bb13, otherwise: bb18];
+ }
+
+ bb20 (cleanup): {
-+ switchInt(_7) -> [0: bb12, otherwise: bb19];
++ _10 = discriminant(_1);
++ switchInt(move _10) -> [0: bb15, otherwise: bb17];
++ }
++
++ bb21 (cleanup): {
++ switchInt(_7) -> [0: bb12, otherwise: bb20];
}
}