Rollup merge of #142495 - jdonszelmann:better-repr-template, r=oli-obk

Better template for `#[repr]` attributes
This commit is contained in:
Trevor Gross
2025-06-20 13:36:00 -04:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -25,7 +25,8 @@ impl<S: Stage> CombineAttributeParser<S> for ReprParser {
const PATH: &[Symbol] = &[sym::repr];
const CONVERT: ConvertFn<Self::Item> = AttributeKind::Repr;
// FIXME(jdonszelmann): never used
const TEMPLATE: AttributeTemplate = template!(List: "C");
const TEMPLATE: AttributeTemplate =
template!(List: "C | Rust | align(...) | packed(...) | <integer type> | transparent");
fn extend<'c>(
cx: &'c mut AcceptContext<'_, '_, S>,