Skip to content

Commit 13fe05c

Browse files
committed
FileCheck inline_scopes_parenting
1 parent 2846971 commit 13fe05c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
fn main() -> () {
44
let mut _0: ();
5-
let _1: {closure@$DIR/issue_76997_inline_scopes_parenting.rs:6:13: 6:16};
6-
let mut _2: &{closure@$DIR/issue_76997_inline_scopes_parenting.rs:6:13: 6:16};
5+
let _1: {closure@$DIR/issue_76997_inline_scopes_parenting.rs:10:13: 10:16};
6+
let mut _2: &{closure@$DIR/issue_76997_inline_scopes_parenting.rs:10:13: 10:16};
77
let mut _3: ((),);
88
let mut _4: ();
99
let mut _5: ();
@@ -19,7 +19,7 @@ fn main() -> () {
1919

2020
bb0: {
2121
StorageLive(_1);
22-
_1 = {closure@$DIR/issue_76997_inline_scopes_parenting.rs:6:13: 6:16};
22+
_1 = {closure@$DIR/issue_76997_inline_scopes_parenting.rs:10:13: 10:16};
2323
StorageLive(_2);
2424
_2 = &_1;
2525
StorageLive(_3);
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
// skip-filecheck
21
// Tests that MIR inliner can handle `SourceScopeData` parenting correctly. (#76997)
32

43
// EMIT_MIR issue_76997_inline_scopes_parenting.main.Inline.after.mir
54
fn main() {
5+
// CHECK-LABEL: fn main(
6+
// CHECK: scope 2
7+
// CHECK-NEXT: debug x
8+
// CHECK-NEXT: scope 3
9+
// CHECK-NEXT: debug y
610
let f = |x| { let y = x; y };
711
f(())
812
}

0 commit comments

Comments
 (0)