Port #[rustc_deny_explicit_impl] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 00:18:37 +03:00
parent 62f58dbb2d
commit 938916d220
7 changed files with 19 additions and 4 deletions

View File

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

View File

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