Port #[rustc_pub_transparent] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-14 20:54:30 +03:00
parent ea34650916
commit d86d3f3742
6 changed files with 29 additions and 4 deletions

View File

@@ -240,6 +240,9 @@ pub enum AttributeKind {
/// Represents `#[optimize(size|speed)]`
Optimize(OptimizeAttr, Span),
/// Represents `#[rustc_pub_transparent]` (used by the `repr_transparent_external_private_fields` lint).
PubTransparent(Span),
/// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
Repr(ThinVec<(ReprAttr, Span)>),