about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/macros.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-03-25 09:00:35 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-03-25 10:12:07 +0000
commit7cdc456727fb663bf53232ec414a9001410ac843 (patch)
tree062ade8c3bc5545f34354326314702b01b71e6cf /compiler/rustc_resolve/src/macros.rs
parent502d57cb78082efa16ed661ddfb501c189f18321 (diff)
downloadrust-7cdc456727fb663bf53232ec414a9001410ac843.tar.gz
rust-7cdc456727fb663bf53232ec414a9001410ac843.zip
Track whether an assoc item is in a trait impl or an inherent impl
Diffstat (limited to 'compiler/rustc_resolve/src/macros.rs')
-rw-r--r--compiler/rustc_resolve/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs
index 34441d313f5..aef98330e17 100644
--- a/compiler/rustc_resolve/src/macros.rs
+++ b/compiler/rustc_resolve/src/macros.rs
@@ -264,7 +264,7 @@ impl<'ra, 'tcx> ResolverExpand for Resolver<'ra, 'tcx> {
             }
             InvocationKind::Bang { ref mac, .. } => (&mac.path, MacroKind::Bang),
             InvocationKind::Derive { ref path, .. } => (path, MacroKind::Derive),
-            InvocationKind::GlobDelegation { ref item } => {
+            InvocationKind::GlobDelegation { ref item, .. } => {
                 let ast::AssocItemKind::DelegationMac(deleg) = &item.kind else { unreachable!() };
                 deleg_impl = Some(self.invocation_parent(invoc_id));
                 // It is sufficient to consider glob delegation a bang macro for now.