Skip to content

Commit d2c8893

Browse files
Remove MIR dump comments from mir-opt tests
They're ignored by the test runner, so let's not suggest that they matter
1 parent 34155a8 commit d2c8893

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

src/test/mir-opt/deaggregator_test.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ fn main() {}
2323
// END RUST SOURCE
2424
// START rustc.node13.Deaggregator.before.mir
2525
// bb0: {
26-
// _2 = _1; // scope 0 at main.rs:8:8: 8:9
27-
// _3 = _2; // scope 1 at main.rs:9:14: 9:15
28-
// _0 = Baz { x: _3, y: const F32(0), z: const false }; // scope ...
29-
// goto -> bb1; // scope 1 at main.rs:8:1: 10:2
26+
// _2 = _1;
27+
// _3 = _2;
28+
// _0 = Baz { x: _3, y: const F32(0), z: const false };
29+
// goto -> bb1;
3030
// }
3131
// END rustc.node13.Deaggregator.before.mir
3232
// START rustc.node13.Deaggregator.after.mir
3333
// bb0: {
34-
// _2 = _1; // scope 0 at main.rs:8:8: 8:9
35-
// _3 = _2; // scope 1 at main.rs:9:14: 9:15
36-
// (_0.0: usize) = _3; // scope 1 at main.rs:9:5: 9:34
37-
// (_0.1: f32) = const F32(0); // scope 1 at main.rs:9:5: 9:34
38-
// (_0.2: bool) = const false; // scope 1 at main.rs:9:5: 9:34
39-
// goto -> bb1; // scope 1 at main.rs:8:1: 10:2
34+
// _2 = _1;
35+
// _3 = _2;
36+
// (_0.0: usize) = _3;
37+
// (_0.1: f32) = const F32(0);
38+
// (_0.2: bool) = const false;
39+
// goto -> bb1;
4040
// }
4141
// END rustc.node13.Deaggregator.after.mir

src/test/mir-opt/deaggregator_test_enum.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ fn main() {
2828
// END RUST SOURCE
2929
// START rustc.node10.Deaggregator.before.mir
3030
// bb0: {
31-
// _2 = _1; // scope 0 at main.rs:7:8: 7:9
32-
// _3 = _2; // scope 1 at main.rs:8:19: 8:20
33-
// _0 = Baz::Foo { x: _3 }; // scope 1 at main.rs:8:5: 8:21
34-
// goto -> bb1; // scope 1 at main.rs:7:1: 9:2
31+
// _2 = _1;
32+
// _3 = _2;
33+
// _0 = Baz::Foo { x: _3 };
34+
// goto -> bb1;
3535
// }
3636
// END rustc.node10.Deaggregator.before.mir
3737
// START rustc.node10.Deaggregator.after.mir
3838
// bb0: {
39-
// _2 = _1; // scope 0 at main.rs:7:8: 7:9
40-
// _3 = _2; // scope 1 at main.rs:8:19: 8:20
41-
// ((_0 as Foo).0: usize) = _3; // scope 1 at main.rs:8:5: 8:21
42-
// discriminant(_0) = 1; // scope 1 at main.rs:8:5: 8:21
43-
// goto -> bb1; // scope 1 at main.rs:7:1: 9:2
39+
// _2 = _1;
40+
// _3 = _2;
41+
// ((_0 as Foo).0: usize) = _3;
42+
// discriminant(_0) = 1;
43+
// goto -> bb1;
4444
// }
4545
// END rustc.node10.Deaggregator.after.mir

src/test/mir-opt/simplify_if.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ fn main() {
1717
// END RUST SOURCE
1818
// START rustc.node4.SimplifyBranches.initial-before.mir
1919
// bb0: {
20-
// if(const false) -> [true: bb1, false: bb2]; // scope 0 at simplify_if.rs:12:5: 14:6
20+
// if(const false) -> [true: bb1, false: bb2];
2121
// }
2222
// END rustc.node4.SimplifyBranches.initial-before.mir
2323
// START rustc.node4.SimplifyBranches.initial-after.mir
2424
// bb0: {
25-
// goto -> bb2; // scope 0 at simplify_if.rs:12:5: 14:6
25+
// goto -> bb2;
2626
// }
27-
// END rustc.node4.SimplifyBranches.initial-after.mir
27+
// END rustc.node4.SimplifyBranches.initial-after.mir

src/test/mir-opt/storage_ranges.rs

+19-19
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ fn main() {
2121
// END RUST SOURCE
2222
// START rustc.node4.TypeckMir.before.mir
2323
// bb0: {
24-
// StorageLive(_1); // scope 0 at storage_ranges.rs:12:9: 12:10
25-
// _1 = const 0i32; // scope 0 at storage_ranges.rs:12:13: 12:14
26-
// StorageLive(_3); // scope 1 at storage_ranges.rs:14:13: 14:14
27-
// StorageLive(_4); // scope 1 at storage_ranges.rs:14:18: 14:25
28-
// StorageLive(_5); // scope 1 at storage_ranges.rs:14:23: 14:24
29-
// _5 = _1; // scope 1 at storage_ranges.rs:14:23: 14:24
30-
// _4 = std::option::Option<i32>::Some(_5,); // scope 1 at storage_ranges.rs:14:18: 14:25
31-
// _3 = &_4; // scope 1 at storage_ranges.rs:14:17: 14:25
32-
// StorageDead(_5); // scope 1 at storage_ranges.rs:14:23: 14:24
33-
// _2 = (); // scope 2 at storage_ranges.rs:13:5: 15:6
34-
// StorageDead(_4); // scope 1 at storage_ranges.rs:14:18: 14:25
35-
// StorageDead(_3); // scope 1 at storage_ranges.rs:14:13: 14:14
36-
// StorageLive(_6); // scope 1 at storage_ranges.rs:16:9: 16:10
37-
// _6 = const 1i32; // scope 1 at storage_ranges.rs:16:13: 16:14
38-
// _0 = (); // scope 3 at storage_ranges.rs:11:11: 17:2
39-
// StorageDead(_6); // scope 1 at storage_ranges.rs:16:9: 16:10
40-
// StorageDead(_1); // scope 0 at storage_ranges.rs:14:9: 14:10
41-
// goto -> bb1; // scope 0 at storage_ranges.rs:11:1: 17:2
24+
// StorageLive(_1);
25+
// _1 = const 0i32;
26+
// StorageLive(_3);
27+
// StorageLive(_4);
28+
// StorageLive(_5);
29+
// _5 = _1;
30+
// _4 = std::option::Option<i32>::Some(_5,);
31+
// _3 = &_4;
32+
// StorageDead(_5);
33+
// _2 = ();
34+
// StorageDead(_4);
35+
// StorageDead(_3);
36+
// StorageLive(_6);
37+
// _6 = const 1i32;
38+
// _0 = ();
39+
// StorageDead(_6);
40+
// StorageDead(_1);
41+
// goto -> bb1;
4242
// }
4343
//
4444
// bb1: {
45-
// return; // scope 0 at storage_ranges.rs:13:1: 19:2
45+
// return;
4646
// }
4747
// END rustc.node4.TypeckMir.before.mir

0 commit comments

Comments
 (0)