Port #[const_trait] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-23 23:41:33 +03:00
parent ab68b0fb26
commit 62f58dbb2d
8 changed files with 49 additions and 33 deletions

View File

@@ -234,6 +234,9 @@ pub enum AttributeKind {
/// Represents `#[rustc_const_stable_indirect]`.
ConstStabilityIndirect,
/// Represents `#[const_trait]`.
ConstTrait(Span),
/// Represents [`#[deprecated]`](https://doc.rust-lang.org/stable/reference/attributes/diagnostics.html#the-deprecated-attribute).
Deprecation { deprecation: Deprecation, span: Span },

View File

@@ -23,6 +23,7 @@ impl AttributeKind {
ConstContinue(..) => No,
ConstStability { .. } => Yes,
ConstStabilityIndirect => No,
ConstTrait(..) => No,
Deprecation { .. } => Yes,
DocComment { .. } => Yes,
Dummy => No,