Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/symbols.rs')
-rw-r--r--crates/hir/src/symbols.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/hir/src/symbols.rs b/crates/hir/src/symbols.rs
index a84ca0e0a1..858293a345 100644
--- a/crates/hir/src/symbols.rs
+++ b/crates/hir/src/symbols.rs
@@ -174,6 +174,13 @@ impl<'a> SymbolCollector<'a> {
for const_id in scope.unnamed_consts() {
self.collect_from_body(const_id);
}
+
+ for (_, id) in scope.legacy_macros() {
+ let loc = id.lookup(self.db.upcast());
+ if loc.container == module_id {
+ self.push_decl(id, FileSymbolKind::Macro);
+ }
+ }
}
fn collect_from_body(&mut self, body_id: impl Into<DefWithBodyId>) {