Skip to content

Commit f8ca6aa

Browse files
committed
./x.py test --bless
1 parent c2b74f9 commit f8ca6aa

18 files changed

+34
-149
lines changed

src/test/mir-opt/const_prop/boxes.main.ConstProp.diff

-4
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@
3535
bb1: {
3636
StorageLive(_7); // scope 0 at $DIR/boxes.rs:+1:14: +1:22
3737
_7 = ShallowInitBox(move _6, i32); // scope 0 at $DIR/boxes.rs:+1:14: +1:22
38-
StorageLive(_8); // scope 0 at $DIR/boxes.rs:+1:19: +1:21
3938
_8 = (((_7.0: std::ptr::Unique<i32>).0: std::ptr::NonNull<i32>).0: *const i32); // scope 0 at $DIR/boxes.rs:+1:19: +1:21
4039
(*_8) = const 42_i32; // scope 0 at $DIR/boxes.rs:+1:19: +1:21
41-
StorageDead(_8); // scope 0 at $DIR/boxes.rs:+1:14: +1:22
4240
_3 = move _7; // scope 0 at $DIR/boxes.rs:+1:14: +1:22
4341
StorageDead(_7); // scope 0 at $DIR/boxes.rs:+1:21: +1:22
44-
StorageLive(_9); // scope 0 at $DIR/boxes.rs:+1:13: +1:22
4542
_9 = (((_3.0: std::ptr::Unique<i32>).0: std::ptr::NonNull<i32>).0: *const i32); // scope 0 at $DIR/boxes.rs:+1:13: +1:22
4643
_2 = (*_9); // scope 0 at $DIR/boxes.rs:+1:13: +1:22
47-
StorageDead(_9); // scope 0 at $DIR/boxes.rs:+1:13: +1:26
4844
_1 = Add(move _2, const 0_i32); // scope 0 at $DIR/boxes.rs:+1:13: +1:26
4945
StorageDead(_2); // scope 0 at $DIR/boxes.rs:+1:25: +1:26
5046
drop(_3) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/boxes.rs:+1:26: +1:27

src/test/mir-opt/derefer_complex_case.main.Derefer.diff

-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@
6868
bb4: {
6969
StorageLive(_12); // scope 1 at $DIR/derefer_complex_case.rs:+1:10: +1:13
7070
- _12 = (*((_7 as Some).0: &i32)); // scope 1 at $DIR/derefer_complex_case.rs:+1:10: +1:13
71-
+ StorageLive(_15); // scope 1 at $DIR/derefer_complex_case.rs:+1:10: +1:13
7271
+ _15 = deref_copy ((_7 as Some).0: &i32); // scope 1 at $DIR/derefer_complex_case.rs:+1:10: +1:13
7372
+ _12 = (*_15); // scope 1 at $DIR/derefer_complex_case.rs:+1:10: +1:13
74-
+ StorageDead(_15); // scope 2 at $DIR/derefer_complex_case.rs:+1:34: +1:37
7573
StorageLive(_13); // scope 2 at $DIR/derefer_complex_case.rs:+1:34: +1:37
7674
_13 = _12; // scope 2 at $DIR/derefer_complex_case.rs:+1:34: +1:37
7775
_6 = std::mem::drop::<i32>(move _13) -> bb7; // scope 2 at $DIR/derefer_complex_case.rs:+1:29: +1:38

src/test/mir-opt/derefer_terminator_test.main.Derefer.diff

-7
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,18 @@
5555
_5 = &_6; // scope 2 at $DIR/derefer_terminator_test.rs:+3:17: +3:21
5656
_4 = &_5; // scope 2 at $DIR/derefer_terminator_test.rs:+3:15: +3:22
5757
- switchInt((*(*(*(*_4))))) -> [false: bb3, otherwise: bb4]; // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
58-
+ StorageLive(_10); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
5958
+ _10 = deref_copy (*_4); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
60-
+ StorageLive(_11); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
6159
+ _11 = deref_copy (*_10); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
62-
+ StorageDead(_10); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
63-
+ StorageLive(_12); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
6460
+ _12 = deref_copy (*_11); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
65-
+ StorageDead(_11); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
6661
+ switchInt((*_12)) -> [false: bb3, otherwise: bb4]; // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
6762
}
6863

6964
bb3: {
70-
+ StorageDead(_12); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
7165
_3 = const (); // scope 2 at $DIR/derefer_terminator_test.rs:+5:18: +5:20
7266
goto -> bb5; // scope 2 at $DIR/derefer_terminator_test.rs:+5:18: +5:20
7367
}
7468

7569
bb4: {
76-
+ StorageDead(_12); // scope 2 at $DIR/derefer_terminator_test.rs:+3:5: +3:22
7770
StorageLive(_8); // scope 2 at $DIR/derefer_terminator_test.rs:+4:22: +4:23
7871
_8 = const 5_i32; // scope 2 at $DIR/derefer_terminator_test.rs:+4:26: +4:27
7972
_3 = const (); // scope 2 at $DIR/derefer_terminator_test.rs:+4:17: +4:29

src/test/mir-opt/derefer_test.main.Derefer.diff

-4
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@
3333
StorageDead(_3); // scope 1 at $DIR/derefer_test.rs:+2:28: +2:29
3434
StorageLive(_4); // scope 2 at $DIR/derefer_test.rs:+3:9: +3:10
3535
- _4 = &mut ((*(_2.1: &mut (i32, i32))).0: i32); // scope 2 at $DIR/derefer_test.rs:+3:13: +3:26
36-
+ StorageLive(_6); // scope 2 at $DIR/derefer_test.rs:+3:13: +3:26
3736
+ _6 = deref_copy (_2.1: &mut (i32, i32)); // scope 2 at $DIR/derefer_test.rs:+3:13: +3:26
3837
+ _4 = &mut ((*_6).0: i32); // scope 2 at $DIR/derefer_test.rs:+3:13: +3:26
39-
+ StorageDead(_6); // scope 3 at $DIR/derefer_test.rs:+4:9: +4:10
4038
StorageLive(_5); // scope 3 at $DIR/derefer_test.rs:+4:9: +4:10
4139
- _5 = &mut ((*(_2.1: &mut (i32, i32))).1: i32); // scope 3 at $DIR/derefer_test.rs:+4:13: +4:26
42-
+ StorageLive(_7); // scope 3 at $DIR/derefer_test.rs:+4:13: +4:26
4340
+ _7 = deref_copy (_2.1: &mut (i32, i32)); // scope 3 at $DIR/derefer_test.rs:+4:13: +4:26
4441
+ _5 = &mut ((*_7).1: i32); // scope 3 at $DIR/derefer_test.rs:+4:13: +4:26
45-
+ StorageDead(_7); // scope 0 at $DIR/derefer_test.rs:+0:11: +5:2
4642
_0 = const (); // scope 0 at $DIR/derefer_test.rs:+0:11: +5:2
4743
StorageDead(_5); // scope 3 at $DIR/derefer_test.rs:+5:1: +5:2
4844
StorageDead(_4); // scope 2 at $DIR/derefer_test.rs:+5:1: +5:2

src/test/mir-opt/derefer_test_multiple.main.Derefer.diff

-12
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,16 @@
5757
StorageDead(_7); // scope 3 at $DIR/derefer_test_multiple.rs:+4:28: +4:29
5858
StorageLive(_8); // scope 4 at $DIR/derefer_test_multiple.rs:+5:9: +5:10
5959
- _8 = &mut ((*((*((*(_6.1: &mut (i32, &mut (i32, &mut (i32, i32))))).1: &mut (i32, &mut (i32, i32)))).1: &mut (i32, i32))).1: i32); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
60-
+ StorageLive(_10); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
6160
+ _10 = deref_copy (_6.1: &mut (i32, &mut (i32, &mut (i32, i32)))); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
62-
+ StorageLive(_11); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
6361
+ _11 = deref_copy ((*_10).1: &mut (i32, &mut (i32, i32))); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
64-
+ StorageDead(_10); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
65-
+ StorageLive(_12); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
6662
+ _12 = deref_copy ((*_11).1: &mut (i32, i32)); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
67-
+ StorageDead(_11); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
6863
+ _8 = &mut ((*_12).1: i32); // scope 4 at $DIR/derefer_test_multiple.rs:+5:13: +5:30
69-
+ StorageDead(_12); // scope 5 at $DIR/derefer_test_multiple.rs:+6:9: +6:10
7064
StorageLive(_9); // scope 5 at $DIR/derefer_test_multiple.rs:+6:9: +6:10
7165
- _9 = &mut ((*((*((*(_6.1: &mut (i32, &mut (i32, &mut (i32, i32))))).1: &mut (i32, &mut (i32, i32)))).1: &mut (i32, i32))).1: i32); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
72-
+ StorageLive(_13); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
7366
+ _13 = deref_copy (_6.1: &mut (i32, &mut (i32, &mut (i32, i32)))); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
74-
+ StorageLive(_14); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
7567
+ _14 = deref_copy ((*_13).1: &mut (i32, &mut (i32, i32))); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
76-
+ StorageDead(_13); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
77-
+ StorageLive(_15); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
7868
+ _15 = deref_copy ((*_14).1: &mut (i32, i32)); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
79-
+ StorageDead(_14); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
8069
+ _9 = &mut ((*_15).1: i32); // scope 5 at $DIR/derefer_test_multiple.rs:+6:13: +6:30
81-
+ StorageDead(_15); // scope 0 at $DIR/derefer_test_multiple.rs:+0:12: +7:2
8270
_0 = const (); // scope 0 at $DIR/derefer_test_multiple.rs:+0:12: +7:2
8371
StorageDead(_9); // scope 5 at $DIR/derefer_test_multiple.rs:+7:1: +7:2
8472
StorageDead(_8); // scope 4 at $DIR/derefer_test_multiple.rs:+7:1: +7:2

0 commit comments

Comments
 (0)