summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.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/pre-codegen/spans.outer.PreCodegen.after.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 '')
-rw-r--r--tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-abort.mir25
1 files changed, 11 insertions, 14 deletions
diff --git a/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-abort.mir b/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-abort.mir
index 1d3317efd..485dc9179 100644
--- a/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-abort.mir
+++ b/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-abort.mir
@@ -1,21 +1,18 @@
// MIR for `outer` after PreCodegen
fn outer(_1: u8) -> u8 {
- debug v => _1; // in scope 0 at $DIR/spans.rs:9:14: 9:15
- let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:9:24: 9:26
- let mut _2: &u8; // in scope 0 at $DIR/spans.rs:10:11: 10:13
-
- bb0: {
- StorageLive(_2); // scope 0 at $DIR/spans.rs:10:11: 10:13
- _2 = &_1; // scope 0 at $DIR/spans.rs:10:11: 10:13
- _0 = inner(move _2) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/spans.rs:10:5: 10:14
- // mir::ConstOperand
- // + span: $DIR/spans.rs:10:5: 10:10
- // + const_: Const { ty: for<'a> fn(&'a u8) -> u8 {inner}, val: Value(inner) }
+ debug v => _1; // in scope 0 at $DIR/spans.rs:10:14: 10:15
+ let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:10:24: 10:26
+ let mut _2: &u8; // in scope 0 at $DIR/spans.rs:11:11: 11:13
+ scope 1 (inlined inner) { // at $DIR/spans.rs:11:5: 11:14
+ debug x => _2; // in scope 1 at $DIR/spans.rs:14:14: 14:15
}
- bb1: {
- StorageDead(_2); // scope 0 at $DIR/spans.rs:10:13: 10:14
- return; // scope 0 at $DIR/spans.rs:11:2: 11:2
+ bb0: {
+ StorageLive(_2); // scope 0 at $DIR/spans.rs:11:11: 11:13
+ _2 = &_1; // scope 0 at $DIR/spans.rs:11:11: 11:13
+ _0 = _1; // scope 1 at $DIR/spans.rs:15:5: 15:7
+ StorageDead(_2); // scope 0 at $DIR/spans.rs:11:13: 11:14
+ return; // scope 0 at $DIR/spans.rs:12:2: 12:2
}
}