]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/nameres/collector.rs
Handle attribute macros in `descend_into_macros`
[rust.git] / crates / hir_def / src / nameres / collector.rs
index d0b1db5d1071d3b74e7dd2f21553be75dc974d8c..d019ba3a9626c45afbe7f46e8c5d32ed727440d5 100644 (file)
@@ -1112,6 +1112,11 @@ fn resolve_macros(&mut self) -> ReachedFixedPoint {
                                     return false;
                                 }
                             }
+
+                            self.def_map.modules[directive.module_id]
+                                .scope
+                                .add_attr_macro_invoc(ast_id.ast_id, call_id);
+
                             resolved.push((directive.module_id, call_id, directive.depth));
                             res = ReachedFixedPoint::No;
                             return false;