Skip to content

Commit aae3e74

Browse files
committed
patch mir-opt reference files
1 parent 9b3af6c commit aae3e74

3 files changed

+13
-7
lines changed

src/test/mir-opt/nll/liveness-call-subtlety.rs

+11-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@ fn main() {
3131
// | Live variables at bb0[0]: []
3232
// StorageLive(_1);
3333
// | Live variables at bb0[1]: []
34-
// _1 = const <std::boxed::Box<T>>::new(const 22usize) -> bb1;
34+
// StorageLive(_2);
35+
// | Live variables at bb0[2]: []
36+
// _2 = const 22usize;
37+
// | Live variables at bb0[3]: [_2]
38+
// _1 = const <std::boxed::Box<T>>::new(_2) -> bb1;
3539
// }
3640
// END rustc.node12.nll.0.mir
3741
// START rustc.node12.nll.0.mir
3842
// | Live variables on entry to bb1: [_1 (drop)]
3943
// bb1: {
40-
// | Live variables at bb1[0]: [_1 (drop)]
41-
// StorageLive(_2);
42-
// | Live variables at bb1[1]: [_1 (drop)]
43-
// _2 = const can_panic() -> [return: bb2, unwind: bb4];
44+
// | Live variables at bb1[0]: [_1 (drop)]
45+
// StorageDead(_2);
46+
// | Live variables at bb1[1]: [_1 (drop)]
47+
// StorageLive(_3);
48+
// | Live variables at bb1[2]: [_1 (drop)]
49+
// _3 = const can_panic() -> [return: bb2, unwind: bb4];
4450
// }
4551
// END rustc.node12.nll.0.mir

src/test/mir-opt/nll/region-liveness-drop-no-may-dangle.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ impl<T> Drop for Wrap<T> {
4646

4747
// END RUST SOURCE
4848
// START rustc.node12.nll.0.mir
49-
// | '_#4r: {bb1[3], bb1[4], bb1[5], bb2[0], bb2[1], bb2[2], bb3[0], bb4[0], bb4[1], bb4[2], bb6[0], bb7[0], bb7[1], bb8[0]}
49+
// | '_#4r: {bb1[3], bb1[4], bb1[5], bb2[0], bb2[1], bb2[2], bb3[0], bb3[1], bb3[2], bb4[0], bb4[1], bb4[2], bb6[0], bb7[0], bb7[1], bb7[2], bb8[0]}
5050
// END rustc.node12.nll.0.mir

src/test/mir-opt/nll/region-liveness-two-disjoint-uses.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ fn main() {
4545
// ...
4646
// _2 = &'_#0r _1[_3];
4747
// ...
48-
// _2 = &'_#2r (*_10);
48+
// _2 = &'_#2r (*_11);
4949
// END rustc.node12.nll.0.mir

0 commit comments

Comments
 (0)