diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2025-06-14 20:54:30 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2025-06-21 21:52:25 +0300 |
| commit | d86d3f3742caad06488a1bf1d7eb045606f95cdd (patch) | |
| tree | 2c8a6826591544088abdec67b19f3a8aa010ebf3 /compiler/rustc_attr_data_structures/src | |
| parent | ea34650916887b5075812d0f11c1d3209e7f94ab (diff) | |
| download | rust-d86d3f3742caad06488a1bf1d7eb045606f95cdd.tar.gz rust-d86d3f3742caad06488a1bf1d7eb045606f95cdd.zip | |
Port `#[rustc_pub_transparent]` to the new attribute system
Diffstat (limited to 'compiler/rustc_attr_data_structures/src')
| -rw-r--r-- | compiler/rustc_attr_data_structures/src/attributes.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_attr_data_structures/src/attributes.rs b/compiler/rustc_attr_data_structures/src/attributes.rs index 066e3e9eceb..f0f5cc4db07 100644 --- a/compiler/rustc_attr_data_structures/src/attributes.rs +++ b/compiler/rustc_attr_data_structures/src/attributes.rs @@ -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)>), |
