This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 22
33fn 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 number Diff line number Diff line change 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
54fn 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}
You can’t perform that action at this time.
0 commit comments