about summary refs log tree commit diff
path: root/compiler/rustc_attr_data_structures/src
diff options
context:
space:
mode:
authorPavel Grigorenko <GrigorenkoPV@ya.ru>2025-06-14 20:54:30 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2025-06-21 21:52:25 +0300
commitd86d3f3742caad06488a1bf1d7eb045606f95cdd (patch)
tree2c8a6826591544088abdec67b19f3a8aa010ebf3 /compiler/rustc_attr_data_structures/src
parentea34650916887b5075812d0f11c1d3209e7f94ab (diff)
downloadrust-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.rs3
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)>),