Skip to content

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

+1-1
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

+1
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

+1
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

+1-1
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

+1-1
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

+1
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

+1
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

+1
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

+1
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

+1-1
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

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

+1-1
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

tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// EMIT_MIR_FOR_EACH_BIT_WIDTH
23
// EMIT_MIR bad_op_unsafe_oob_for_slices.main.ConstProp.diff
34
#[allow(unconditional_panic)]

tests/mir-opt/const_prop/checked_add.rs

+1
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: -C overflow-checks=on
34

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
StorageLive(_3); // scope 0 at $DIR/const_prop_fails_gracefully.rs:+2:13: +2:16
1919
_3 = const _; // scope 0 at $DIR/const_prop_fails_gracefully.rs:+2:13: +2:16
2020
// mir::Constant
21-
// + span: $DIR/const_prop_fails_gracefully.rs:8:13: 8:16
21+
// + span: $DIR/const_prop_fails_gracefully.rs:9:13: 9:16
2222
// + literal: Const { ty: &i32, val: Unevaluated(FOO, [], None) }
2323
_2 = &raw const (*_3); // scope 0 at $DIR/const_prop_fails_gracefully.rs:+2:13: +2:16
2424
_1 = move _2 as usize (PointerExposeAddress); // scope 0 at $DIR/const_prop_fails_gracefully.rs:+2:13: +2:39
@@ -29,7 +29,7 @@
2929
_5 = _1; // scope 1 at $DIR/const_prop_fails_gracefully.rs:+3:10: +3:11
3030
_4 = read(move _5) -> bb1; // scope 1 at $DIR/const_prop_fails_gracefully.rs:+3:5: +3:12
3131
// mir::Constant
32-
// + span: $DIR/const_prop_fails_gracefully.rs:9:5: 9:9
32+
// + span: $DIR/const_prop_fails_gracefully.rs:10:5: 10:9
3333
// + literal: Const { ty: fn(usize) {read}, val: Value(<ZST>) }
3434
}
3535

tests/mir-opt/const_prop/const_prop_fails_gracefully.rs

+1
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
#[inline(never)]
34
fn read(_: usize) { }

tests/mir-opt/const_prop/control_flow_simplification.rs

+1
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: -Zmir-opt-level=1
34

tests/mir-opt/const_prop/indirect.rs

+1
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: -C overflow-checks=on
34

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
let mut _3: u8; // in scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47
99
scope 1 {
1010
}
11-
scope 2 (inlined <u8 as Add>::add) { // at $DIR/inherit_overflow.rs:8:13: 8:47
11+
scope 2 (inlined <u8 as Add>::add) { // at $DIR/inherit_overflow.rs:9:13: 9:47
1212
debug self => _2; // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL
1313
debug other => _3; // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL
1414
let mut _4: (u8, bool); // in scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL

tests/mir-opt/const_prop/inherit_overflow.rs

+1
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: -Zmir-enable-passes=+Inline
34

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
_2 = (const (), const 0_u8, const 0_u8); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
1212
_1 = encode(move _2) -> bb1; // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
1313
// mir::Constant
14-
// + span: $DIR/issue_66971.rs:17:5: 17:11
14+
// + span: $DIR/issue_66971.rs:18:5: 18:11
1515
// + literal: Const { ty: fn(((), u8, u8)) {encode}, val: Value(<ZST>) }
1616
}
1717

tests/mir-opt/const_prop/issue_66971.rs

+1
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: -Z mir-opt-level=3
34

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
StorageDead(_3); // scope 0 at $DIR/issue_67019.rs:+1:18: +1:19
1717
_1 = test(move _2) -> bb1; // scope 0 at $DIR/issue_67019.rs:+1:5: +1:20
1818
// mir::Constant
19-
// + span: $DIR/issue_67019.rs:12:5: 12:9
19+
// + span: $DIR/issue_67019.rs:13:5: 13:9
2020
// + literal: Const { ty: fn(((u8, u8),)) {test}, val: Value(<ZST>) }
2121
}
2222

tests/mir-opt/const_prop/issue_67019.rs

+1
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: -Z mir-opt-level=3
34

tests/mir-opt/const_prop/large_array_index.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// EMIT_MIR_FOR_EACH_BIT_WIDTH
23

34
// EMIT_MIR large_array_index.main.ConstProp.diff

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
StorageLive(_1); // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:+1:9: +1:14
1717
_1 = foo() -> bb1; // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:+1:29: +1:34
1818
// mir::Constant
19-
// + span: $DIR/mutable_variable_aggregate_partial_read.rs:6:29: 6:32
19+
// + span: $DIR/mutable_variable_aggregate_partial_read.rs:7:29: 7:32
2020
// + literal: Const { ty: fn() -> (i32, i32) {foo}, val: Value(<ZST>) }
2121
}
2222

tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
StorageLive(_1); // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+1:9: +1:10
2727
_1 = foo() -> bb1; // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+1:13: +1:18
2828
// mir::Constant
29-
// + span: $DIR/mutable_variable_unprop_assign.rs:6:13: 6:16
29+
// + span: $DIR/mutable_variable_unprop_assign.rs:7:13: 7:16
3030
// + literal: Const { ty: fn() -> i32 {foo}, val: Value(<ZST>) }
3131
}
3232

tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs

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

tests/mir-opt/const_prop/optimizes_into_variable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test
23
// compile-flags: -C overflow-checks=on
34

tests/mir-opt/const_prop/repeat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// compile-flags: -O
23

34
// EMIT_MIR_FOR_EACH_BIT_WIDTH

tests/mir-opt/const_prop/return_place.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// compile-flags: -C overflow-checks=on
23

34
// EMIT_MIR return_place.add.ConstProp.diff

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- _2 = consume(_1) -> bb1; // scope 1 at $DIR/scalar_literal_propagation.rs:+2:5: +2:15
1616
+ _2 = consume(const 1_u32) -> bb1; // scope 1 at $DIR/scalar_literal_propagation.rs:+2:5: +2:15
1717
// mir::Constant
18-
// + span: $DIR/scalar_literal_propagation.rs:4:5: 4:12
18+
// + span: $DIR/scalar_literal_propagation.rs:5:5: 5:12
1919
// + literal: Const { ty: fn(u32) {consume}, val: Value(<ZST>) }
2020
}
2121

tests/mir-opt/const_prop/scalar_literal_propagation.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff
23
fn main() {
34
let x = 1;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
StorageLive(_4); // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2121
_9 = const _; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2222
// mir::Constant
23-
// + span: $DIR/slice_len.rs:7:6: 7:19
23+
// + span: $DIR/slice_len.rs:8:6: 8:19
2424
// + literal: Const { ty: &[u32; 3], val: Unevaluated(main, [], Some(promoted[0])) }
2525
_4 = _9; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2626
_3 = _4; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19

tests/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
StorageLive(_4); // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2121
_9 = const _; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2222
// mir::Constant
23-
// + span: $DIR/slice_len.rs:7:6: 7:19
23+
// + span: $DIR/slice_len.rs:8:6: 8:19
2424
// + literal: Const { ty: &[u32; 3], val: Unevaluated(main, [], Some(promoted[0])) }
2525
_4 = _9; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19
2626
_3 = _4; // scope 0 at $DIR/slice_len.rs:+1:6: +1:19

tests/mir-opt/const_prop/slice_len.rs

+1
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: -Zmir-enable-passes=+InstCombine
34
// EMIT_MIR_FOR_EACH_BIT_WIDTH

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
bb1: {
1616
_0 = foo(const -1_i32) -> bb3; // scope 0 at $DIR/switch_int.rs:+3:14: +3:21
1717
// mir::Constant
18-
// + span: $DIR/switch_int.rs:9:14: 9:17
18+
// + span: $DIR/switch_int.rs:10:14: 10:17
1919
// + literal: Const { ty: fn(i32) {foo}, val: Value(<ZST>) }
2020
}
2121

2222
bb2: {
2323
_0 = foo(const 0_i32) -> bb3; // scope 0 at $DIR/switch_int.rs:+2:14: +2:20
2424
// mir::Constant
25-
// + span: $DIR/switch_int.rs:8:14: 8:17
25+
// + span: $DIR/switch_int.rs:9:14: 9:17
2626
// + literal: Const { ty: fn(i32) {foo}, val: Value(<ZST>) }
2727
}
2828

tests/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
bb1: {
1616
_0 = foo(const -1_i32) -> bb3; // scope 0 at $DIR/switch_int.rs:+3:14: +3:21
1717
// mir::Constant
18-
// + span: $DIR/switch_int.rs:9:14: 9:17
18+
// + span: $DIR/switch_int.rs:10:14: 10:17
1919
// + literal: Const { ty: fn(i32) {foo}, val: Value(<ZST>) }
2020
}
2121

2222
bb2: {
2323
_0 = foo(const 0_i32) -> bb3; // scope 0 at $DIR/switch_int.rs:+2:14: +2:20
2424
// mir::Constant
25-
// + span: $DIR/switch_int.rs:8:14: 8:17
25+
// + span: $DIR/switch_int.rs:9:14: 9:17
2626
// + literal: Const { ty: fn(i32) {foo}, val: Value(<ZST>) }
2727
}
2828

tests/mir-opt/const_prop/switch_int.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
#[inline(never)]
23
fn foo(_: i32) { }
34

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
+ _1 = const (1_u32, 2_u32); // scope 0 at $DIR/tuple_literal_propagation.rs:+1:13: +1:19
1616
_2 = consume(_1) -> bb1; // scope 1 at $DIR/tuple_literal_propagation.rs:+3:5: +3:15
1717
// mir::Constant
18-
// + span: $DIR/tuple_literal_propagation.rs:5:5: 5:12
18+
// + span: $DIR/tuple_literal_propagation.rs:6:5: 6:12
1919
// + literal: Const { ty: fn((u32, u32)) {consume}, val: Value(<ZST>) }
2020
}
2121

tests/mir-opt/const_prop/tuple_literal_propagation.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// EMIT_MIR tuple_literal_propagation.main.ConstProp.diff
23
fn main() {
34
let x = (1, 2);

tests/mir-opt/copy-prop/borrowed_local.f.CopyProp.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
_4 = &_3; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
1616
_0 = cmp_ref(_2, _4) -> bb1; // scope 0 at $DIR/borrowed_local.rs:+8:13: +8:45
1717
// mir::Constant
18-
// + span: $DIR/borrowed_local.rs:23:29: 23:36
18+
// + span: $DIR/borrowed_local.rs:24:29: 24:36
1919
// + literal: Const { ty: for<'a, 'b> fn(&'a u8, &'b u8) -> bool {cmp_ref}, val: Value(<ZST>) }
2020
}
2121

2222
bb1: {
2323
- _0 = opaque::<u8>(_3) -> bb2; // scope 0 at $DIR/borrowed_local.rs:+12:13: +12:38
2424
+ _0 = opaque::<u8>(_1) -> bb2; // scope 0 at $DIR/borrowed_local.rs:+12:13: +12:38
2525
// mir::Constant
26-
// + span: $DIR/borrowed_local.rs:27:28: 27:34
26+
// + span: $DIR/borrowed_local.rs:28:28: 28:34
2727
// + literal: Const { ty: fn(u8) -> bool {opaque::<u8>}, val: Value(<ZST>) }
2828
}
2929

tests/mir-opt/copy-prop/borrowed_local.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
// unit-test: CopyProp
23

34
#![feature(custom_mir, core_intrinsics)]

tests/mir-opt/copy-prop/branch.foo.CopyProp.diff

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
StorageLive(_1); // scope 0 at $DIR/branch.rs:+1:9: +1:10
1919
_1 = val() -> bb1; // scope 0 at $DIR/branch.rs:+1:13: +1:18
2020
// mir::Constant
21-
// + span: $DIR/branch.rs:13:13: 13:16
21+
// + span: $DIR/branch.rs:14:13: 14:16
2222
// + literal: Const { ty: fn() -> i32 {val}, val: Value(<ZST>) }
2323
}
2424

@@ -27,7 +27,7 @@
2727
StorageLive(_3); // scope 1 at $DIR/branch.rs:+3:16: +3:22
2828
_3 = cond() -> bb2; // scope 1 at $DIR/branch.rs:+3:16: +3:22
2929
// mir::Constant
30-
// + span: $DIR/branch.rs:15:16: 15:20
30+
// + span: $DIR/branch.rs:16:16: 16:20
3131
// + literal: Const { ty: fn() -> bool {cond}, val: Value(<ZST>) }
3232
}
3333

@@ -44,7 +44,7 @@
4444
StorageLive(_4); // scope 1 at $DIR/branch.rs:+6:9: +6:14
4545
_4 = val() -> bb5; // scope 1 at $DIR/branch.rs:+6:9: +6:14
4646
// mir::Constant
47-
// + span: $DIR/branch.rs:18:9: 18:12
47+
// + span: $DIR/branch.rs:19:9: 19:12
4848
// + literal: Const { ty: fn() -> i32 {val}, val: Value(<ZST>) }
4949
}
5050

tests/mir-opt/copy-prop/branch.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-wasm32 compiled with panic=abort by default
12
//! Tests that we bail out when there are multiple assignments to the same local.
23
// unit-test: CopyProp
34
fn val() -> i32 {

tests/mir-opt/copy-prop/copy_propagation_arg.bar.CopyProp.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_3 = _1; // scope 0 at $DIR/copy_propagation_arg.rs:+1:11: +1:12
1414
_2 = dummy(move _3) -> bb1; // scope 0 at $DIR/copy_propagation_arg.rs:+1:5: +1:13
1515
// mir::Constant
16-
// + span: $DIR/copy_propagation_arg.rs:16:5: 16:10
16+
// + span: $DIR/copy_propagation_arg.rs:17:5: 17:10
1717
// + literal: Const { ty: fn(u8) -> u8 {dummy}, val: Value(<ZST>) }
1818
}
1919

tests/mir-opt/copy-prop/copy_propagation_arg.foo.CopyProp.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_3 = _1; // scope 0 at $DIR/copy_propagation_arg.rs:+2:15: +2:16
1414
_2 = dummy(move _3) -> bb1; // scope 0 at $DIR/copy_propagation_arg.rs:+2:9: +2:17
1515
// mir::Constant
16-
// + span: $DIR/copy_propagation_arg.rs:11:9: 11:14
16+
// + span: $DIR/copy_propagation_arg.rs:12:9: 12:14
1717
// + literal: Const { ty: fn(u8) -> u8 {dummy}, val: Value(<ZST>) }
1818
}
1919

0 commit comments

Comments
 (0)