Skip to content

Commit 38f3c3b

Browse files
committed
Try again, this time with both 64 and 32 bit ignores.
1 parent 38b3169 commit 38f3c3b

6 files changed

+12
-8
lines changed

src/test/ui/consts/const-eval/union-const-eval-field.32bit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/union-const-eval-field.rs:29:5
2+
--> $DIR/union-const-eval-field.rs:31:5
33
|
44
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes

src/test/ui/consts/const-eval/union-const-eval-field.64bit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/union-const-eval-field.rs:29:5
2+
--> $DIR/union-const-eval-field.rs:31:5
33
|
44
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes

src/test/ui/consts/const-eval/union-const-eval-field.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// stderr-per-bitwidth
2+
// ignore-wasm32
3+
// ignore-wasm64
24
#![feature(const_fn)]
35

46
type Field1 = i32;

src/test/ui/consts/const-eval/union-ice.32bit.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/union-ice.rs:15:1
2+
--> $DIR/union-ice.rs:17:1
33
|
44
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes
@@ -10,7 +10,7 @@ LL | const FIELD3: Field3 = unsafe { UNION.field3 };
1010
}
1111

1212
error[E0080]: it is undefined behavior to use this value
13-
--> $DIR/union-ice.rs:17:1
13+
--> $DIR/union-ice.rs:19:1
1414
|
1515
LL | / const FIELD_PATH: Struct = Struct {
1616
LL | | a: 42,
@@ -24,7 +24,7 @@ LL | | };
2424
}
2525

2626
error[E0080]: it is undefined behavior to use this value
27-
--> $DIR/union-ice.rs:27:1
27+
--> $DIR/union-ice.rs:29:1
2828
|
2929
LL | / const FIELD_PATH2: Struct2 = Struct2 {
3030
LL | | b: [

src/test/ui/consts/const-eval/union-ice.64bit.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: it is undefined behavior to use this value
2-
--> $DIR/union-ice.rs:15:1
2+
--> $DIR/union-ice.rs:17:1
33
|
44
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes
@@ -10,7 +10,7 @@ LL | const FIELD3: Field3 = unsafe { UNION.field3 };
1010
}
1111

1212
error[E0080]: it is undefined behavior to use this value
13-
--> $DIR/union-ice.rs:17:1
13+
--> $DIR/union-ice.rs:19:1
1414
|
1515
LL | / const FIELD_PATH: Struct = Struct {
1616
LL | | a: 42,
@@ -24,7 +24,7 @@ LL | | };
2424
}
2525

2626
error[E0080]: it is undefined behavior to use this value
27-
--> $DIR/union-ice.rs:27:1
27+
--> $DIR/union-ice.rs:29:1
2828
|
2929
LL | / const FIELD_PATH2: Struct2 = Struct2 {
3030
LL | | b: [

src/test/ui/consts/const-eval/union-ice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// stderr-per-bitwidth
2+
// ignore-wasm32
3+
// ignore-wasm64
24
#![feature(const_fn)]
35

46
type Field1 = i32;

0 commit comments

Comments
 (0)