summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff')
-rw-r--r--tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff b/tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff
new file mode 100644
index 000000000..cadf05152
--- /dev/null
+++ b/tests/mir-opt/dont_yeet_assert.generic.InstSimplify.diff
@@ -0,0 +1,23 @@
+- // MIR for `generic` before InstSimplify
++ // MIR for `generic` after InstSimplify
+
+ fn generic() -> () {
+ let mut _0: (); // return place in scope 0 at $DIR/dont_yeet_assert.rs:+0:21: +0:21
+ let _1: (); // in scope 0 at $DIR/dont_yeet_assert.rs:+1:5: +1:61
+
+ bb0: {
+ StorageLive(_1); // scope 0 at $DIR/dont_yeet_assert.rs:+1:5: +1:61
+ _1 = assert_mem_uninitialized_valid::<&T>() -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/dont_yeet_assert.rs:+1:5: +1:61
+ // mir::Constant
+ // + span: $DIR/dont_yeet_assert.rs:10:5: 10:59
+ // + user_ty: UserType(0)
+ // + literal: Const { ty: extern "rust-intrinsic" fn() {assert_mem_uninitialized_valid::<&T>}, val: Value(<ZST>) }
+ }
+
+ bb1: {
+ StorageDead(_1); // scope 0 at $DIR/dont_yeet_assert.rs:+1:61: +1:62
+ _0 = const (); // scope 0 at $DIR/dont_yeet_assert.rs:+0:21: +2:2
+ return; // scope 0 at $DIR/dont_yeet_assert.rs:+2:2: +2:2
+ }
+ }
+