Skip to content

Commit 070cc83

Browse files
committed
properly mark tests that require panic=abort
1 parent a4e8904 commit 070cc83

File tree

108 files changed

+108
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+108
-104
lines changed

tests/mir-opt/array_index_is_temporary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32 compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// Retagging (from Stacked Borrows) relies on the array index being a fresh
33
// temporary, so that side-effects cannot change it.
44
// Test that this is indeed the case.

tests/mir-opt/box_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32-bare compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22

33
#![feature(rustc_attrs, stmt_expr_attributes)]
44

tests/mir-opt/combine_array_len.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32 compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// unit-test: InstSimplify
33
// EMIT_MIR combine_array_len.norm2.InstSimplify.diff
44

tests/mir-opt/combine_clone_of_primitives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// unit-test: InstSimplify
2-
// ignore-wasm32 compiled with panic=abort by default
2+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
33

44
// EMIT_MIR combine_clone_of_primitives.{impl#0}-clone.InstSimplify.diff
55

tests/mir-opt/const_prop/aggregate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32 compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// unit-test: ConstProp
33
// compile-flags: -O
44

tests/mir-opt/const_prop/array_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32 compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// unit-test: ConstProp
33
// EMIT_MIR_FOR_EACH_BIT_WIDTH
44

tests/mir-opt/const_prop/bad_op_div_by_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore-wasm32 compiled with panic=abort by default
1+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
// unit-test: ConstProp
33
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
44
#[allow(unconditional_panic)]

tests/mir-opt/const_prop/bad_op_mod_by_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// unit-test: ConstProp
2-
// ignore-wasm32 compiled with panic=abort by default
2+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
33
// EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff
44
#[allow(unconditional_panic)]
55
fn main() {

tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// unit-test: ConstProp
2-
// ignore-wasm32 compiled with panic=abort by default
2+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
33
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
44

55
// EMIT_MIR_FOR_EACH_BIT_WIDTH

tests/mir-opt/const_prop/boxes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// unit-test: ConstProp
22
// compile-flags: -O
33
// ignore-emscripten compiled with panic=abort by default
4-
// ignore-wasm32
4+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
55
// ignore-wasm64
66

77
#![feature(rustc_attrs, stmt_expr_attributes)]

0 commit comments

Comments
 (0)