aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/references.rs')
-rw-r--r--crates/ide/src/references.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs
index 0a76ec6b4..722c8f406 100644
--- a/crates/ide/src/references.rs
+++ b/crates/ide/src/references.rs
@@ -106,7 +106,9 @@ pub(crate) fn find_all_refs(
106 let RangeInfo { range, info: def } = find_name(&sema, &syntax, position, opt_name)?; 106 let RangeInfo { range, info: def } = find_name(&sema, &syntax, position, opt_name)?;
107 107
108 let references = def 108 let references = def
109 .find_usages(sema, search_scope) 109 .usages(sema)
110 .set_scope(search_scope)
111 .all()
110 .into_iter() 112 .into_iter()
111 .filter(|r| search_kind == ReferenceKind::Other || search_kind == r.kind) 113 .filter(|r| search_kind == ReferenceKind::Other || search_kind == r.kind)
112 .collect(); 114 .collect();