summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/issue_91633.bar.built.after.mir
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/mir-opt/issue_91633.bar.built.after.mir
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/issue_91633.bar.built.after.mir')
-rw-r--r--tests/mir-opt/issue_91633.bar.built.after.mir35
1 files changed, 16 insertions, 19 deletions
diff --git a/tests/mir-opt/issue_91633.bar.built.after.mir b/tests/mir-opt/issue_91633.bar.built.after.mir
index 88a383015..92f52e138 100644
--- a/tests/mir-opt/issue_91633.bar.built.after.mir
+++ b/tests/mir-opt/issue_91633.bar.built.after.mir
@@ -1,40 +1,37 @@
// MIR for `bar` after built
fn bar(_1: Box<[T]>) -> () {
- debug it => _1; // in scope 0 at $DIR/issue_91633.rs:+0:12: +0:14
- let mut _0: (); // return place in scope 0 at $DIR/issue_91633.rs:+1:2: +1:2
- let mut _2: &<[T] as std::ops::Index<usize>>::Output; // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
- let mut _3: &[T]; // in scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
+ debug it => _1;
+ let mut _0: ();
+ let mut _2: &<[T] as std::ops::Index<usize>>::Output;
+ let mut _3: &[T];
scope 1 {
}
bb0: {
- StorageLive(_2); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
- StorageLive(_3); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
- _3 = &(*_1); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:16
- _2 = <[T] as Index<usize>>::index(move _3, const 0_usize) -> [return: bb1, unwind: bb3]; // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
- // mir::Constant
- // + span: $DIR/issue_91633.rs:15:14: 15:19
- // + literal: Const { ty: for<'a> fn(&'a [T], usize) -> &'a <[T] as Index<usize>>::Output {<[T] as Index<usize>>::index}, val: Value(<ZST>) }
+ StorageLive(_2);
+ StorageLive(_3);
+ _3 = &(*_1);
+ _2 = <[T] as Index<usize>>::index(move _3, const 0_usize) -> [return: bb1, unwind: bb3];
}
bb1: {
- StorageDead(_3); // scope 0 at $DIR/issue_91633.rs:+4:18: +4:19
- PlaceMention((*_2)); // scope 0 at $DIR/issue_91633.rs:+4:14: +4:19
- StorageDead(_2); // scope 0 at $DIR/issue_91633.rs:+4:19: +4:20
- _0 = const (); // scope 0 at $DIR/issue_91633.rs:+3:2: +5:3
- drop(_1) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
+ StorageDead(_3);
+ PlaceMention((*_2));
+ StorageDead(_2);
+ _0 = const ();
+ drop(_1) -> [return: bb2, unwind: bb4];
}
bb2: {
- return; // scope 0 at $DIR/issue_91633.rs:+5:3: +5:3
+ return;
}
bb3 (cleanup): {
- drop(_1) -> [return: bb4, unwind terminate]; // scope 0 at $DIR/issue_91633.rs:+5:2: +5:3
+ drop(_1) -> [return: bb4, unwind terminate];
}
bb4 (cleanup): {
- resume; // scope 0 at $DIR/issue_91633.rs:+0:1: +5:3
+ resume;
}
}