Port #[rustc_as_ptr] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-14 13:01:15 +03:00
parent 68ac5abb06
commit da8d6bbd50
6 changed files with 41 additions and 13 deletions

View File

@@ -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,