We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6618d1e commit d694b01Copy full SHA for d694b01
crates/ra_hir/src/nameres/collector.rs
@@ -522,9 +522,10 @@ where
522
if let Some(macro_id) =
523
mac.path.as_ident().and_then(|name| self.def_collector.global_macro_scope.get(&name))
524
{
525
- let macro_call_id = MacroCallLoc { def: *macro_id, ast_id }.id(self.def_collector.db);
+ let def = *macro_id;
526
+ let macro_call_id = MacroCallLoc { def, ast_id }.id(self.def_collector.db);
527
- self.def_collector.collect_macro_expansion(self.module_id, macro_call_id, *macro_id);
528
+ self.def_collector.collect_macro_expansion(self.module_id, macro_call_id, def);
529
return;
530
}
531
0 commit comments