Skip to content

Commit

Permalink
tests: Skip const OOM tests on aarch64-unknown-linux-gnu
Browse files Browse the repository at this point in the history
Skip const OOM tests on AArch64 Linux through explicit annotations
instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.
  • Loading branch information
mrkajetanp committed Jan 24, 2025
1 parent 8231e85 commit c692b4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/consts/large_const_alloc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//@ only-64bit
// on 32bit and 16bit platforms it is plausible that the maximum allocation size will succeed
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
//@ ignore-aarch64-unknown-linux-gnu

const FOO: () = {
// 128 TiB, unlikely anyone has that much RAM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Needs the max type size to be much bigger than the RAM people typically have.
//@ only-64bit
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
//@ ignore-aarch64-unknown-linux-gnu

pub struct Data([u8; (1 << 47) - 1]);
const _: &'static Data = &Data([0; (1 << 47) - 1]);
Expand Down

0 comments on commit c692b4b

Please sign in to comment.