Port #[rustc_unsafe_specialization_marker] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 01:41:19 +03:00
parent 6193783961
commit a57a885abc
7 changed files with 29 additions and 10 deletions

View File

@@ -365,6 +365,9 @@ pub enum AttributeKind {
/// Represents `#[type_const]`.
TypeConst(Span),
/// Represents `#[rustc_unsafe_specialization_marker]`.
UnsafeSpecializationMarker(Span),
/// Represents `#[used]`
Used { used_by: UsedBy, span: Span },
// tidy-alphabetical-end

View File

@@ -61,6 +61,7 @@ impl AttributeKind {
TargetFeature(..) => No,
TrackCaller(..) => Yes,
TypeConst(..) => Yes,
UnsafeSpecializationMarker(..) => No,
Used { .. } => No,
// tidy-alphabetical-end
}