about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/ub-int-array.rs
AgeCommit message (Collapse)AuthorLines
2025-06-02Use the informative error as the main const eval error messageOli Scherer-6/+3
2025-04-30compiletest: Make diagnostic kind mandatory on line annotationsVadim Petrochenkov-3/+5
2023-08-24Fix ub-int-array test for big-endian platformsUlrich Weigand-2/+6
As of commit 7767cbb3b0b332fd0a46e347ea7f68f20109d768, the tests/ui/consts/const-eval/ub-int-array.rs test is failing on big-endian platforms (in particular s390x), as the stderr output contains a hex dump that depends on endianness. Since this point intentionally verifies the hex dump to check the uninitialized byte markers, I think we should not simply standardize away the hex dump as is done with some of the other tests in this directory. However, most of the test is already endian-independent. The only exception is one line of hex dump, which can also be made endian-independent by choosing appropriate constants in the source code. Since the 32bit and 64bit stderr outputs were already (and remain) identical, I've merged them and removed the stderr-per-bitwidth marker. Fixes (again) https://github.com/rust-lang/rust/issues/105383.
2023-08-02const validation: point at where we found a pointer but expected an integerRalf Jung-43/+41
2023-01-11Move /src/test to /testsAlbert Larsan-0/+63