Port #[rustc_std_internal_symbol] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-07-04 15:53:03 +03:00
parent 5d7771e50d
commit 4f0b0b0f01
7 changed files with 22 additions and 10 deletions

View File

@@ -335,6 +335,9 @@ pub enum AttributeKind {
span: Span,
},
/// Represents `#[rustc_std_internal_symbol]`.
StdInternalSymbol(Span),
/// Represents `#[target_feature(enable = "...")]`
TargetFeature(ThinVec<(Symbol, Span)>, Span),

View File

@@ -51,6 +51,7 @@ impl AttributeKind {
RustcObjectLifetimeDefault => No,
SkipDuringMethodDispatch { .. } => No,
Stability { .. } => Yes,
StdInternalSymbol(..) => No,
TargetFeature(..) => No,
TrackCaller(..) => Yes,
Used { .. } => No,