Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0412639

Browse files
committed
Ignore many tests on wasm32
1 parent e06de16 commit 0412639

File tree

149 files changed

+279
-203
lines changed

Some content is hidden

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

149 files changed

+279
-203
lines changed

tests/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn main() -> () {
3838
_6 = _3; // scope 4 at $DIR/array_index_is_temporary.rs:+4:25: +4:26
3939
_5 = foo(move _6) -> bb1; // scope 4 at $DIR/array_index_is_temporary.rs:+4:21: +4:27
4040
// mir::Constant
41-
// + span: $DIR/array_index_is_temporary.rs:16:21: 16:24
41+
// + span: $DIR/array_index_is_temporary.rs:17:21: 17:24
4242
// + literal: Const { ty: unsafe fn(*mut usize) -> u32 {foo}, val: Value(<ZST>) }
4343
}
4444

tests/mir-opt/array_index_is_temporary.rs

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

tests/mir-opt/combine_array_len.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test: InstCombine
23
// EMIT_MIR combine_array_len.norm2.InstCombine.diff
34

tests/mir-opt/const_prop/aggregate.main.ConstProp.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
+ _5 = const 1_u8; // scope 1 at $DIR/aggregate.rs:+2:9: +2:10
3030
_4 = foo(move _5) -> bb1; // scope 1 at $DIR/aggregate.rs:+2:5: +2:11
3131
// mir::Constant
32-
// + span: $DIR/aggregate.rs:8:5: 8:8
32+
// + span: $DIR/aggregate.rs:9:5: 9:8
3333
// + literal: Const { ty: fn(u8) {foo}, val: Value(<ZST>) }
3434
}
3535

tests/mir-opt/const_prop/aggregate.main.PreCodegen.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() -> () {
2525
_5 = const 1_u8; // scope 1 at $DIR/aggregate.rs:+2:9: +2:10
2626
_4 = foo(move _5) -> bb1; // scope 1 at $DIR/aggregate.rs:+2:5: +2:11
2727
// mir::Constant
28-
// + span: $DIR/aggregate.rs:8:5: 8:8
28+
// + span: $DIR/aggregate.rs:9:5: 9:8
2929
// + literal: Const { ty: fn(u8) {foo}, val: Value(<ZST>) }
3030
}
3131

tests/mir-opt/const_prop/aggregate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test: ConstProp
23
// compile-flags: -O
34

tests/mir-opt/const_prop/array_index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test: ConstProp
23
// EMIT_MIR_FOR_EACH_BIT_WIDTH
34

tests/mir-opt/const_prop/bad_op_div_by_zero.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test: ConstProp
23
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
34
#[allow(unconditional_panic)]

tests/mir-opt/const_prop/bad_op_mod_by_zero.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff
23
#[allow(unconditional_panic)]
34
fn main() {

tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
StorageLive(_2); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+1:25: +1:35
2626
_8 = const _; // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+1:25: +1:35
2727
// mir::Constant
28-
// + span: $DIR/bad_op_unsafe_oob_for_slices.rs:5:25: 5:35
28+
// + span: $DIR/bad_op_unsafe_oob_for_slices.rs:6:25: 6:35
2929
// + literal: Const { ty: &[i32; 3], val: Unevaluated(main, [], Some(promoted[0])) }
3030
_2 = &raw const (*_8); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+1:25: +1:35
3131
_1 = move _2 as *const [i32] (Pointer(Unsize)); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+1:25: +1:35

0 commit comments

Comments
 (0)