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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir/src/symbols.rs b/crates/hir/src/symbols.rs
index 841ddfb9c4..e1101dd823 100644
--- a/crates/hir/src/symbols.rs
+++ b/crates/hir/src/symbols.rs
@@ -165,6 +165,7 @@ impl<'a> SymbolCollector<'a> {
// Record renamed imports.
// FIXME: In case it imports multiple items under different namespaces we just pick one arbitrarily
// for now.
+ // FIXME: This parses!
for id in scope.imports() {
let source = id.import.child_source(self.db.upcast());
let Some(use_tree_src) = source.value.get(id.idx) else { continue };
@@ -195,7 +196,7 @@ impl<'a> SymbolCollector<'a> {
});
}
- for const_id in scope.unnamed_consts() {
+ for const_id in scope.unnamed_consts(self.db.upcast()) {
self.collect_from_body(const_id);
}