Skip to content

Commit a18de70

Browse files
committed
Mark test as panic=abort.
1 parent 779007d commit a18de70

4 files changed

+10
-24
lines changed

src/test/mir-opt/sroa.dropping.ScalarReplacementOfAggregates.diff

+5-21
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,22 @@
2929
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
3030
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
3131
_1 = move (_2.1: Tag); // scope 0 at $DIR/sroa.rs:+1:5: +1:32
32-
drop(_1) -> [return: bb1, unwind: bb2]; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
32+
drop(_1) -> bb1; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
3333
}
3434

3535
bb1: {
36-
drop((_2.0: Tag)) -> [return: bb6, unwind: bb5]; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
36+
drop((_2.0: Tag)) -> bb3; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
3737
}
3838

39-
bb2 (cleanup): {
40-
drop((_2.0: Tag)) -> bb7; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
41-
}
42-
43-
bb3 (cleanup): {
44-
resume; // scope 0 at $DIR/sroa.rs:+0:1: +2:2
45-
}
46-
47-
bb4: {
39+
bb2: {
4840
StorageDead(_2); // scope 0 at $DIR/sroa.rs:+1:32: +1:33
4941
StorageDead(_1); // scope 0 at $DIR/sroa.rs:+1:32: +1:33
5042
_0 = const (); // scope 0 at $DIR/sroa.rs:+0:19: +2:2
5143
return; // scope 0 at $DIR/sroa.rs:+2:2: +2:2
5244
}
5345

54-
bb5 (cleanup): {
55-
drop((_2.2: Tag)) -> bb3; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
56-
}
57-
58-
bb6: {
59-
drop((_2.2: Tag)) -> [return: bb4, unwind: bb3]; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
60-
}
61-
62-
bb7 (cleanup): {
63-
drop((_2.2: Tag)) -> bb3; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
46+
bb3: {
47+
drop((_2.2: Tag)) -> bb2; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
6448
}
6549
}
6650

src/test/mir-opt/sroa.escaping.ScalarReplacementOfAggregates.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
StorageLive(_5); // scope 0 at $DIR/sroa.rs:+2:34: +2:37
1818
_5 = g() -> bb1; // scope 0 at $DIR/sroa.rs:+2:34: +2:37
1919
// mir::Constant
20-
// + span: $DIR/sroa.rs:76:34: 76:35
20+
// + span: $DIR/sroa.rs:78:34: 78:35
2121
// + literal: Const { ty: fn() -> u32 {g}, val: Value(<ZST>) }
2222
}
2323

@@ -31,7 +31,7 @@
3131
_2 = &raw const (*_3); // scope 0 at $DIR/sroa.rs:+2:7: +2:41
3232
_1 = f(move _2) -> bb2; // scope 0 at $DIR/sroa.rs:+2:5: +2:42
3333
// mir::Constant
34-
// + span: $DIR/sroa.rs:76:5: 76:6
34+
// + span: $DIR/sroa.rs:78:5: 78:6
3535
// + literal: Const { ty: fn(*const u32) {f}, val: Value(<ZST>) }
3636
}
3737

src/test/mir-opt/sroa.flat.ScalarReplacementOfAggregates.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
+ _9 = move _6; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
5454
+ _10 = const "a"; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
5555
// mir::Constant
56-
// + span: $DIR/sroa.rs:55:52: 55:55
56+
// + span: $DIR/sroa.rs:57:52: 57:55
5757
// + literal: Const { ty: &str, val: Value(Slice(..)) }
5858
- (_5.3: std::option::Option<isize>) = move _7; // scope 0 at $DIR/sroa.rs:+1:30: +1:70
5959
+ _11 = move _7; // scope 0 at $DIR/sroa.rs:+1:30: +1:70

src/test/mir-opt/sroa.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// unit-test: ScalarReplacementOfAggregates
2+
// compile-flags: -Cpanic=abort
3+
// no-prefer-dynamic
24

35
struct Tag(usize);
46

0 commit comments

Comments
 (0)