about summary refs log tree commit diff
path: root/src/test/ui/attr-usage-repr.rs
AgeCommit message (Collapse)AuthorLines
2021-11-14Move some tests to more reasonable directoriesCaio-33/+0
2020-09-28passes: `check_attr` on more targetsDavid Wood-4/+4
This commit modifies `check_attr` so that: - Enum variants are now checked (some attributes would not have been prohibited on variants previously). - `check_expr_attributes` and `check_stmt_attributes` are removed as `check_attributes` can perform the same checks. Signed-off-by: David Wood <david@davidtw.co>
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-1/+1
Tracking issue: #60405
2019-05-27Stabilize repr_align_enum in 1.37.0.Mazdak Farrokhzad-1/+0
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.