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] {
8
8
let mut _4 : &mut [T]; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5: 3:6
9
9
scope 1 {
10
10
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
12
11
}
13
12
14
13
bb0 : {
15
14
StorageLive(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
16
15
StorageLive(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
17
16
StorageLive(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:6
18
17
_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
23
19
_2 = &mut (*_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:5 : 3:15
24
20
StorageDead(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:3:14 : 3:15
25
21
_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 {
9
9
scope 1 {
10
10
debug self => _4; // in scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
11
11
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
13
12
}
14
13
15
14
bb0 : {
@@ -18,11 +17,8 @@ fn b(_1: &mut std::boxed::Box<T>) -> &mut T {
18
17
StorageLive(_4); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:6
19
18
_4 = &mut (*_1); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:6
20
19
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
24
21
_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
26
22
StorageDead(_5); // scope 1 at $SRC_DIR/liballoc/boxed.rs:LL:COL
27
23
_2 = &mut (*_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:8:5 : 8:15
28
24
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 {
7
7
let mut _3 : &std::boxed::Box<T>; // in scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5: 18:6
8
8
scope 1 {
9
9
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
11
10
}
12
11
13
12
bb0 : {
14
13
StorageLive(_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:15
15
14
StorageLive(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:6
16
15
_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
21
17
_0 = &(*_2); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:5 : 18:15
22
18
StorageDead(_3); // scope 0 at $DIR/issue-58867-inline-as-ref-as-mut.rs:18:14 : 18:15
23
19
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