Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_db/src/search.rs')
-rw-r--r--crates/ide_db/src/search.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs
index 855675be42..c288c5c3e0 100644
--- a/crates/ide_db/src/search.rs
+++ b/crates/ide_db/src/search.rs
@@ -442,9 +442,7 @@ impl<'a> FindUsages<'a> {
continue;
}
- if let Some(ast::NameLike::NameRef(name_ref)) =
- sema.find_node_at_offset_with_descend(&tree, offset)
- {
+ for name_ref in sema.find_nodes_at_offset_with_descend(&tree, offset) {
if self.found_self_module_name_ref(&name_ref, sink) {
return;
}