Port #[rustc_paren_sugar] to the new attribute system

This commit is contained in:
Pavel Grigorenko
2025-06-24 02:06:57 +03:00
parent 507ebced16
commit 1bdf703171
7 changed files with 19 additions and 5 deletions

View File

@@ -325,6 +325,9 @@ pub enum AttributeKind {
/// Represents `#[optimize(size|speed)]`
Optimize(OptimizeAttr, Span),
/// Represents `#[rustc_paren_sugar]`.
ParenSugar(Span),
/// Represents `#[rustc_pass_by_value]` (used by the `rustc_pass_by_value` lint).
PassByValue(Span),

View File

@@ -49,6 +49,7 @@ impl AttributeKind {
NoMangle(..) => No,
NonExhaustive(..) => Yes,
Optimize(..) => No,
ParenSugar(..) => No,
PassByValue(..) => Yes,
Path(..) => No,
PubTransparent(..) => Yes,