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 13:01:15 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2025-06-16 18:13:27 +0300
commitda8d6bbd5043e8f4ea83a2431117c32b0339ac54 (patch)
treec368bd22c1a07fdb24081eb35687ac7ccb22b79d /compiler/rustc_attr_data_structures/src
parent68ac5abb067806a88464ddbfbd3c7eec877b488d (diff)
downloadrust-da8d6bbd5043e8f4ea83a2431117c32b0339ac54.tar.gz
rust-da8d6bbd5043e8f4ea83a2431117c32b0339ac54.zip
Port `#[rustc_as_ptr]` 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 845e4d5e5d0..32c410cc014 100644
--- a/compiler/rustc_attr_data_structures/src/attributes.rs
+++ b/compiler/rustc_attr_data_structures/src/attributes.rs
@@ -158,6 +158,9 @@ pub enum AttributeKind {
     /// Represents `#[allow_internal_unstable]`.
     AllowInternalUnstable(ThinVec<(Symbol, Span)>),
 
+    /// Represents `#[rustc_as_ptr]` (used by the `dangling_pointers_from_temporaries` lint).
+    AsPtr(Span),
+
     /// Represents `#[rustc_default_body_unstable]`.
     BodyStability {
         stability: DefaultBodyStability,