summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.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/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.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/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.diff')
-rw-r--r--tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.diff73
1 files changed, 0 insertions, 73 deletions
diff --git a/tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.diff b/tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.diff
deleted file mode 100644
index f2b87221f..000000000
--- a/tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstSimplify.panic-unwind.diff
+++ /dev/null
@@ -1,73 +0,0 @@
-- // MIR for `<impl at $DIR/combine_clone_of_primitives.rs:6:10: 6:15>::clone` before InstSimplify
-+ // MIR for `<impl at $DIR/combine_clone_of_primitives.rs:6:10: 6:15>::clone` after InstSimplify
-
- fn <impl at $DIR/combine_clone_of_primitives.rs:6:10: 6:15>::clone(_1: &MyThing<T>) -> MyThing<T> {
- debug self => _1;
- let mut _0: MyThing<T>;
- let mut _2: T;
- let mut _3: &T;
- let _4: &T;
- let mut _5: u64;
- let mut _6: &u64;
- let _7: &u64;
- let mut _8: [f32; 3];
- let mut _9: &[f32; 3];
- let _10: &[f32; 3];
-
- bb0: {
- StorageLive(_2);
- StorageLive(_3);
- StorageLive(_4);
- _4 = &((*_1).0: T);
-- _3 = &(*_4);
-+ _3 = _4;
- _2 = <T as Clone>::clone(move _3) -> [return: bb1, unwind continue];
- }
-
- bb1: {
- StorageDead(_3);
- StorageLive(_5);
- StorageLive(_6);
- StorageLive(_7);
- _7 = &((*_1).1: u64);
-- _6 = &(*_7);
-- _5 = <u64 as Clone>::clone(move _6) -> [return: bb2, unwind: bb4];
-+ _6 = _7;
-+ _5 = (*_6);
-+ goto -> bb2;
- }
-
- bb2: {
- StorageDead(_6);
- StorageLive(_8);
- StorageLive(_9);
- StorageLive(_10);
- _10 = &((*_1).2: [f32; 3]);
-- _9 = &(*_10);
-- _8 = <[f32; 3] as Clone>::clone(move _9) -> [return: bb3, unwind: bb4];
-+ _9 = _10;
-+ _8 = (*_9);
-+ goto -> bb3;
- }
-
- bb3: {
- StorageDead(_9);
- _0 = MyThing::<T> { v: move _2, i: move _5, a: move _8 };
- StorageDead(_8);
- StorageDead(_5);
- StorageDead(_2);
- StorageDead(_10);
- StorageDead(_7);
- StorageDead(_4);
- return;
- }
-
- bb4 (cleanup): {
- drop(_2) -> [return: bb5, unwind terminate(cleanup)];
- }
-
- bb5 (cleanup): {
- resume;
- }
- }
-