Rollup merge of #143400 - GrigorenkoPV:attributes/lints, r=jdonszelmann

Port `#[rustc_pass_by_value]` to the new attribute system

Part of rust-lang/rust#131229

r? `@oli-obk`
This commit is contained in:
Matthias Krüger
2025-07-04 16:22:36 +02:00
committed by GitHub
7 changed files with 32 additions and 13 deletions

View File

@@ -287,6 +287,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),