@@ -6,27 +6,46 @@ fn b(_1: &mut Box<T>) -> &mut T {
66 let mut _2 : &mut T; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
77 let mut _3 : &mut T; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
88 let mut _4 : &mut std::boxed::Box<T>; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
9+ let mut _5 : &mut T; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
10+ let mut _6 : &mut T; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
911 scope 1 (inlined <Box<T> as AsMut<T>>::as_mut) { // at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
1012 debug self => _4; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
11- let mut _5 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
12- let mut _6 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
13+ let mut _7 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
14+ let mut _8 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
15+ let mut _9 : &mut std::boxed::Box<T>; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
16+ let mut _10 : std::boxed::Box<T>; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
17+ let mut _11 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
18+ let mut _12 : &mut T; // in scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
1319 }
1420
1521 bb0 : {
1622 StorageLive(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
1723 StorageLive(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
1824 StorageLive(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
1925 _4 = &mut (*_1); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
20- StorageLive(_5); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
21- StorageLive(_6); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
22- _6 = &mut (*(*_4)); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
23- _5 = &mut (*_6); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
24- _3 = &mut (*_5); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
25- StorageDead(_6); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
26- StorageDead(_5); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
27- _2 = &mut (*_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
26+ StorageLive(_7); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
27+ StorageLive(_8); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
28+ StorageLive(_9); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
29+ _9 = move _4; // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
30+ _8 = &mut (*(*_9)); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
31+ StorageLive(_10); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
32+ _10 = move (*_4); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
33+ _8 = &mut (*_10); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
34+ StorageLive(_11); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
35+ _11 = move _8; // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
36+ _7 = &mut (*_11); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
37+ StorageLive(_12); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
38+ _12 = move _7; // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
39+ _3 = &mut (*_12); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
40+ StorageDead(_8); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
41+ StorageDead(_7); // scope 1 at $SRC_DIR/alloc/src/boxed.rs:LL:COL
42+ StorageLive(_5); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
43+ _5 = move _3; // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
44+ _2 = &mut (*_5); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
2845 StorageDead(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:14 : 8:15
29- _0 = &mut (*_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
46+ StorageLive(_6); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
47+ _6 = move _2; // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
48+ _0 = &mut (*_6); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
3049 StorageDead(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:9:1 : 9:2
3150 StorageDead(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:9:1 : 9:2
3251 return; // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:9:2 : 9:2
0 commit comments