Port #[rustc_pass_by_value] to the new attribute system
This commit is contained in:
@@ -284,6 +284,9 @@ pub enum AttributeKind {
|
||||
/// Represents `#[optimize(size|speed)]`
|
||||
Optimize(OptimizeAttr, Span),
|
||||
|
||||
/// Represents `#[rustc_pass_by_value]` (used by the `rustc_pass_by_value` lint).
|
||||
PassByValue(Span),
|
||||
|
||||
/// Represents `#[rustc_pub_transparent]` (used by the `repr_transparent_external_private_fields` lint).
|
||||
PubTransparent(Span),
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ impl AttributeKind {
|
||||
Naked(..) => No,
|
||||
NoMangle(..) => No,
|
||||
Optimize(..) => No,
|
||||
PassByValue(..) => Yes,
|
||||
PubTransparent(..) => Yes,
|
||||
Repr(..) => No,
|
||||
RustcLayoutScalarValidRangeEnd(..) => Yes,
|
||||
|
||||
Reference in New Issue
Block a user