about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-04 12:42:33 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-06 09:51:35 +0200
commit3fa0ec91d8f3f14f9514d45d93e6fb7fdf1ad89e (patch)
tree66df20bec1d1c6d142db768c438968e4001ebe73 /compiler/rustc_builtin_macros
parentfebb10d0a2d29278135676783f6a22eb83295981 (diff)
downloadrust-3fa0ec91d8f3f14f9514d45d93e6fb7fdf1ad89e.tar.gz
rust-3fa0ec91d8f3f14f9514d45d93e6fb7fdf1ad89e.zip
Rewrite empty attribute lint
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_builtin_macros')
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/generic/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
index d201ca196d6..8135f3744f8 100644
--- a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -485,7 +485,7 @@ impl<'a> TraitDef<'a> {
             Annotatable::Item(item) => {
                 let is_packed = matches!(
                     AttributeParser::parse_limited(cx.sess, &item.attrs, sym::repr, item.span, item.id),
-                    Some(Attribute::Parsed(AttributeKind::Repr(r))) if r.iter().any(|(x, _)| matches!(x, ReprPacked(..)))
+                    Some(Attribute::Parsed(AttributeKind::Repr { reprs, .. })) if reprs.iter().any(|(x, _)| matches!(x, ReprPacked(..)))
                 );
 
                 let newitem = match &item.kind {