Skip to content

Commit 54d1f04

Browse files
committed
Ignore big-endian targets in UI tests with raw bytes
Some `const` UI tests have raw bytes in their output that are sensitive to the target endianness. We could consider something like the directive `stderr-per-bitwidth` for endian, but we only ever test little-endian in CI, so that would likely bit rot. For now, just ignore big-endian.
1 parent 90c34fa commit 54d1f04

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

src/test/ui/const-ptr/forbidden_slices.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23
// normalize-stderr-test "alloc[0-9]+" -> "ALLOC_ID"
34
// normalize-stderr-test "a[0-9]+\+0x" -> "A_ID+0x"

src/test/ui/consts/const-eval/ub-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23
#![feature(never_type)]
34
#![allow(invalid_value)]

src/test/ui/consts/const-eval/ub-nonnull.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23
#![feature(rustc_attrs)]
34
#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here

src/test/ui/consts/const-eval/ub-ref-ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// ignore-tidy-linelength
23
// stderr-per-bitwidth
34
#![allow(invalid_value)]

src/test/ui/consts/const-eval/ub-uninhabit.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23
#![allow(const_err)] // make sure we cannot allow away the errors tested here
34

src/test/ui/consts/const-eval/ub-wide-ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// stderr-per-bitwidth
2+
// ignore-endian-big
23
// ignore-tidy-linelength
34
#![allow(unused)]
45

src/test/ui/consts/issue-83182.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23

34
use std::mem;

src/test/ui/consts/std/alloc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// stderr-per-bitwidth
22
// ignore-debug (the debug assertions change the error)
3+
// ignore-endian-big
34
use std::alloc::Layout;
45

56
// ok

src/test/ui/consts/validate_never_arrays.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-endian-big
12
// stderr-per-bitwidth
23
#![feature(never_type)]
34

0 commit comments

Comments
 (0)