summary refs log tree commit diff
path: root/src/test/ui/consts/std/alloc.rs
AgeCommit message (Collapse)AuthorLines
2022-04-08Make non-power-of-two alignments a validity error in `Layout`Scott McMurray-1/+6
Inspired by the zulip conversation about how `Layout` should better enforce `size < isize::MAX as usize`, this uses an N-variant enum on N-bit platforms to require at the validity level that the existing invariant of "must be a power of two" is upheld. This was MIRI can catch it, and means there's a more-specific type for `Layout` to store than just `NonZeroUsize`.
2021-03-31Rename stderr->64bit.stderr where needed.Hameer Abbasi-0/+1
2019-05-14Add ui test for const Layout::from_size_align_uncheckedRichard Wiedenhöft-0/+10