Skip to content

Commit 73f8333

Browse files
committed
update mir-opt tests
1 parent 865320f commit 73f8333

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/librustc_mir/borrow_check/nll/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn dump_mir_results<'a, 'gcx, 'tcx>(
280280
// that are live on exit from the basic block.
281281
PassWhere::AfterTerminator(bb) => {
282282
let s = live_variable_set(&liveness.regular.outs[bb], &liveness.drop.outs[bb]);
283-
writeln!(out, " | Live variables on entry to {:?}: {}", bb, s)?;
283+
writeln!(out, " | Live variables on exit from {:?}: {}", bb, s)?;
284284
}
285285

286286
PassWhere::BeforeBlock(_) | PassWhere::AfterLocation(_) | PassWhere::AfterCFG => {}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ fn main() {
2626
//
2727
// END RUST SOURCE
2828
// START rustc.main.nll.0.mir
29-
// | Live variables on entry to bb0: []
3029
// bb0: {
3130
// | Live variables on entry to bb0[0]: []
3231
// StorageLive(_1);
3332
// | Live variables on entry to bb0[1]: []
3433
// _1 = const <std::boxed::Box<T>>::new(const 22usize) -> [return: bb2, unwind: bb1];
34+
// | Live variables on exit from bb0: [_1 (drop)]
3535
// }
3636
// END rustc.main.nll.0.mir
3737
// START rustc.main.nll.0.mir
38-
// | Live variables on entry to bb2: [_1 (drop)]
3938
// bb2: {
4039
// | Live variables on entry to bb2[0]: [_1 (drop)]
4140
// StorageLive(_2);
4241
// | Live variables on entry to bb2[1]: [_1 (drop)]
4342
// _2 = const can_panic() -> [return: bb3, unwind: bb4];
43+
// | Live variables on exit from bb2: [_1 (drop), _2]
4444
// }
4545
// END rustc.main.nll.0.mir

src/test/mir-opt/nll/liveness-drop-intra-block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ fn main() {
2525

2626
// END RUST SOURCE
2727
// START rustc.main.nll.0.mir
28-
// | Live variables on entry to bb3: []
2928
// bb3: {
3029
// | Live variables on entry to bb3[0]: []
3130
// _1 = const 55usize;
@@ -37,5 +36,6 @@ fn main() {
3736
// _4 = _1;
3837
// | Live variables on entry to bb3[4]: [_4]
3938
// _3 = const use_x(move _4) -> [return: bb4, unwind: bb1];
39+
// | Live variables on exit from bb3: [_3]
4040
// }
4141
// END rustc.main.nll.0.mir

src/test/mir-opt/nll/liveness-interblock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ fn main() {
2929

3030
// END RUST SOURCE
3131
// START rustc.main.nll.0.mir
32-
// | Live variables on entry to bb3: [_1]
3332
// bb3: {
3433
// | Live variables on entry to bb3[0]: [_1]
3534
// StorageLive(_4);
3635
// | Live variables on entry to bb3[1]: [_1]
3736
// _4 = _1;
3837
// | Live variables on entry to bb3[2]: [_4]
3938
// _3 = const make_live(move _4) -> [return: bb5, unwind: bb1];
39+
// | Live variables on exit from bb3: []
4040
// }
4141
// END rustc.main.nll.0.mir
4242
// START rustc.main.nll.0.mir
43-
// | Live variables on entry to bb4: []
4443
// bb4: {
4544
// | Live variables on entry to bb4[0]: []
4645
// _5 = const make_dead() -> [return: bb6, unwind: bb1];
46+
// | Live variables on exit from bb4: []
4747
// }
4848
// END rustc.main.nll.0.mir

src/test/mir-opt/nll/region-liveness-basic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn main() {
4242
// _2 = &'_#2r _1[_3];
4343
// | Live variables on entry to bb2[1]: [_2]
4444
// switchInt(const true) -> [false: bb4, otherwise: bb3];
45+
// | Live variables on exit from bb2: [_2]
4546
// }
4647
// END rustc.main.nll.0.mir
4748
// START rustc.main.nll.0.mir
@@ -52,5 +53,6 @@ fn main() {
5253
// _7 = (*_2);
5354
// | Live variables on entry to bb3[2]: [_7]
5455
// _6 = const use_x(move _7) -> [return: bb5, unwind: bb1];
56+
// | Live variables on exit from bb3: []
5557
// }
5658
// END rustc.main.nll.0.mir

0 commit comments

Comments
 (0)