File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed
src/test/mir-opt/inline/issue-58867-inline-as-ref-as-mut Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,14 @@ fn a(_1: &mut [T]) -> &mut [T] {
88 let mut _4 : &mut [T]; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5: 3:6
99 scope 1 {
1010 debug self => _4; // in scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
11- let mut _5 : &mut [T]; // in scope 1 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5: 3:15
1211 }
1312
1413 bb0 : {
1514 StorageLive(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
1615 StorageLive(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
1716 StorageLive(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:6
1817 _4 = &mut (*_1); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:6
19- StorageLive(_5); // scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
20- _5 = _4; // scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
21- _3 = _5; // scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
22- StorageDead(_5); // scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
18+ _3 = _4; // scope 1 at $SRC_DIR/libcore/convert/mod.rs:LL:COL
2319 _2 = &mut (*_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
2420 StorageDead(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:14 : 3:15
2521 _0 = &mut (*_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ fn b(_1: &mut std::boxed::Box<T>) -> &mut T {
99 scope 1 {
1010 debug self => _4; // in scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
1111 let mut _5 : &mut T; // in scope 1 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
12- let mut _6 : &mut T; // in scope 1 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5: 8:15
1312 }
1413
1514 bb0 : {
@@ -18,11 +17,8 @@ fn b(_1: &mut std::boxed::Box<T>) -> &mut T {
1817 StorageLive(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:6
1918 _4 = &mut (*_1); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:6
2019 StorageLive(_5); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
21- StorageLive(_6); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
22- _6 = &mut (*(*_4)); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
23- _5 = _6; // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
20+ _5 = &mut (*(*_4)); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
2421 _3 = _5; // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
25- StorageDead(_6); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
2622 StorageDead(_5); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
2723 _2 = &mut (*_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
2824 StorageDead(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:14 : 8:15
Original file line number Diff line number Diff line change @@ -7,17 +7,13 @@ fn d(_1: &std::boxed::Box<T>) -> &T {
77 let mut _3 : &std::boxed::Box<T>; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5: 18:6
88 scope 1 {
99 debug self => _3; // in scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
10- let _4 : &T; // in scope 1 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5: 18:15
1110 }
1211
1312 bb0 : {
1413 StorageLive(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:15
1514 StorageLive(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:6
1615 _3 = &(*_1); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:6
17- StorageLive(_4); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
18- _4 = &(*(*_3)); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
19- _2 = _4; // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
20- StorageDead(_4); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
16+ _2 = &(*(*_3)); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
2117 _0 = &(*_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:15
2218 StorageDead(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:14 : 18:15
2319 StorageDead(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:19:1 : 19:2
You can’t perform that action at this time.
0 commit comments