about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-06 15:56:12 +0200
committerGitHub <noreply@github.com>2025-07-06 15:56:12 +0200
commit017fe2fb8f1dc4cc1a4ffa2ea4bdfb62814a10ff (patch)
tree80a9e02d609b274c2cfcd6d5e74711ee9c96ce90 /compiler/rustc_codegen_ssa/src/codegen_attrs.rs
parentc83e217d268d25960a0c79c6941bcb3917a6a0af (diff)
parent33f2cc7eda7a97e2870f9c60a229211a5f416b7a (diff)
downloadrust-017fe2fb8f1dc4cc1a4ffa2ea4bdfb62814a10ff.tar.gz
rust-017fe2fb8f1dc4cc1a4ffa2ea4bdfb62814a10ff.zip
Rollup merge of #143252 - JonathanBrouwer:rewrite_empty_attribute, r=jdonszelmann
Rewrite empty attribute lint for new attribute parser

cc `@jdonszelmann`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/codegen_attrs.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/codegen_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
index 2713ec07f97..be63bb8ac59 100644
--- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
+++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
@@ -109,7 +109,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
 
         if let hir::Attribute::Parsed(p) = attr {
             match p {
-                AttributeKind::Repr(reprs) => {
+                AttributeKind::Repr { reprs, first_span: _ } => {
                     codegen_fn_attrs.alignment = reprs
                         .iter()
                         .filter_map(