Port #[rustc_coherence_is_core] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-25 00:24:14 +03:00
parent e9e64954e6
commit e584ed0de2
7 changed files with 20 additions and 6 deletions

View File

@@ -214,6 +214,9 @@ pub enum AttributeKind {
span: Span,
},
/// Represents `#[rustc_coherence_is_core]`.
CoherenceIsCore,
/// Represents `#[rustc_coinductive]`.
Coinductive(Span),

View File

@@ -19,6 +19,7 @@ impl AttributeKind {
AllowInternalUnstable(..) => Yes,
AsPtr(..) => Yes,
BodyStability { .. } => No,
CoherenceIsCore => No,
Coinductive(..) => No,
Cold(..) => No,
Confusables { .. } => Yes,