summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/box_expr.main.ElaborateDrops.before.panic-abort.mir
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/box_expr.main.ElaborateDrops.before.panic-abort.mir
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/box_expr.main.ElaborateDrops.before.panic-abort.mir')
-rw-r--r--tests/mir-opt/box_expr.main.ElaborateDrops.before.panic-abort.mir71
1 files changed, 0 insertions, 71 deletions
diff --git a/tests/mir-opt/box_expr.main.ElaborateDrops.before.panic-abort.mir b/tests/mir-opt/box_expr.main.ElaborateDrops.before.panic-abort.mir
deleted file mode 100644
index 1c7ef7f83..000000000
--- a/tests/mir-opt/box_expr.main.ElaborateDrops.before.panic-abort.mir
+++ /dev/null
@@ -1,71 +0,0 @@
-// MIR for `main` before ElaborateDrops
-
-fn main() -> () {
- let mut _0: ();
- let _1: std::boxed::Box<S>;
- let mut _2: usize;
- let mut _3: usize;
- let mut _4: *mut u8;
- let mut _5: std::boxed::Box<S>;
- let _6: ();
- let mut _7: std::boxed::Box<S>;
- scope 1 {
- debug x => _1;
- }
- scope 2 {
- }
-
- bb0: {
- StorageLive(_1);
- _2 = SizeOf(S);
- _3 = AlignOf(S);
- _4 = alloc::alloc::exchange_malloc(move _2, move _3) -> [return: bb1, unwind: bb9];
- }
-
- bb1: {
- StorageLive(_5);
- _5 = ShallowInitBox(move _4, S);
- (*_5) = S::new() -> [return: bb2, unwind: bb8];
- }
-
- bb2: {
- _1 = move _5;
- drop(_5) -> [return: bb3, unwind: bb9];
- }
-
- bb3: {
- StorageDead(_5);
- StorageLive(_6);
- StorageLive(_7);
- _7 = move _1;
- _6 = std::mem::drop::<Box<S>>(move _7) -> [return: bb4, unwind: bb6];
- }
-
- bb4: {
- StorageDead(_7);
- StorageDead(_6);
- _0 = const ();
- drop(_1) -> [return: bb5, unwind: bb9];
- }
-
- bb5: {
- StorageDead(_1);
- return;
- }
-
- bb6 (cleanup): {
- drop(_7) -> [return: bb7, unwind terminate(cleanup)];
- }
-
- bb7 (cleanup): {
- drop(_1) -> [return: bb9, unwind terminate(cleanup)];
- }
-
- bb8 (cleanup): {
- drop(_5) -> [return: bb9, unwind terminate(cleanup)];
- }
-
- bb9 (cleanup): {
- resume;
- }
-}