about summary refs log tree commit diff
path: root/src/test/ui/attr-usage-repr.rs
AgeCommit message (Collapse)AuthorLines
2019-01-30Allow #[repr(align(x))] on enums (#57996)Niklas Fiekas-1/+2
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-1/+0
2018-01-01Check all repr hints together when checking for mis-applied attributesRobin Kruppe-0/+44
Fixes #47094 Besides fixing that bug, this change has a user-visible effect on the spans in the "incompatible repr hints" warning and another error: they now point at `foo` and/or `bar` in `repr(foo, bar)` instead of the whole attribute. This is sometimes more precise (e.g., `#[repr(C, packed)]` on an enum points at the `packed`) but sometimes not. I moved a compile-fail test to a ui test to illustrate how it now looks in the common case of only one attribute.