Port #[marker] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 01:49:26 +03:00
parent a57a885abc
commit 12f6487d79
9 changed files with 47 additions and 21 deletions

View File

@@ -294,6 +294,9 @@ pub enum AttributeKind {
/// Represents `#[rustc_macro_transparency]`.
MacroTransparency(Transparency),
/// Represents `#[marker]`.
Marker(Span),
/// Represents [`#[may_dangle]`](https://std-dev-guide.rust-lang.org/tricky/may-dangle.html).
MayDangle(Span),

View File

@@ -40,6 +40,7 @@ impl AttributeKind {
LinkSection { .. } => No,
LoopMatch(..) => No,
MacroTransparency(..) => Yes,
Marker(..) => No,
MayDangle(..) => No,
MustUse { .. } => Yes,
Naked(..) => No,