Limit the problematic tests to x86_64.

This commit is contained in:
Hameer Abbasi 2021-04-01 09:24:01 +00:00
parent 38b31691a7
commit 49705e0709
6 changed files with 2 additions and 63 deletions

View file

@ -1,14 +0,0 @@
error[E0080]: it is undefined behavior to use this value
--> $DIR/union-const-eval-field.rs:29:5
|
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes
|
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
= note: the raw bytes of the constant (size: 8, align: 4) {
__ __ __ __ __ __ __ __ │ ░░░░░░░░
}
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.

View file

@ -1,4 +1,4 @@
// stderr-per-bitwidth
// only-x86_64
#![feature(const_fn)]
type Field1 = i32;

View file

@ -1,47 +0,0 @@
error[E0080]: it is undefined behavior to use this value
--> $DIR/union-ice.rs:15:1
|
LL | const FIELD3: Field3 = unsafe { UNION.field3 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes
|
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
= note: the raw bytes of the constant (size: 8, align: 4) {
__ __ __ __ __ __ __ __ │ ░░░░░░░░
}
error[E0080]: it is undefined behavior to use this value
--> $DIR/union-ice.rs:17:1
|
LL | / const FIELD_PATH: Struct = Struct {
LL | | a: 42,
LL | | b: unsafe { UNION.field3 },
LL | | };
| |__^ type validation failed: encountered uninitialized bytes at .b, but expected initialized plain (non-pointer) bytes
|
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
= note: the raw bytes of the constant (size: 12, align: 4) {
__ __ __ __ __ __ __ __ 2a __ __ __ │ ░░░░░░░░*░░░
}
error[E0080]: it is undefined behavior to use this value
--> $DIR/union-ice.rs:27:1
|
LL | / const FIELD_PATH2: Struct2 = Struct2 {
LL | | b: [
LL | | 21,
LL | | unsafe { UNION.field3 },
... |
LL | | a: 42,
LL | | };
| |__^ type validation failed: encountered uninitialized bytes at .b[1]
|
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
= note: the raw bytes of the constant (size: 36, align: 4) {
0x00 │ 15 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ │ ........░░░░░░░░
0x10 │ 17 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 │ ................
0x20 │ 2a __ __ __ │ *░░░
}
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0080`.

View file

@ -1,4 +1,4 @@
// stderr-per-bitwidth
// only-x86_64
#![feature(const_fn)]
type Field1 = i32;