Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/nameres/assoc.rs')
| -rw-r--r-- | crates/hir-def/src/nameres/assoc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir-def/src/nameres/assoc.rs b/crates/hir-def/src/nameres/assoc.rs index 77d22f3c98..e2a1f78dbb 100644 --- a/crates/hir-def/src/nameres/assoc.rs +++ b/crates/hir-def/src/nameres/assoc.rs @@ -265,6 +265,9 @@ impl<'a> AssocItemCollector<'a> { expand_to, self.module_id.krate(), resolver, + &mut |ptr, call_id| { + self.macro_calls.push((ptr.map(|(_, it)| it.upcast()), call_id)) + }, ) { Ok(Some(call_id)) => { self.macro_calls |