about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/tools/rust-analyzer/crates/ide-db/src/search.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-db/src/search.rs b/src/tools/rust-analyzer/crates/ide-db/src/search.rs
index c807a5940d1..12ce5a403fe 100644
--- a/src/tools/rust-analyzer/crates/ide-db/src/search.rs
+++ b/src/tools/rust-analyzer/crates/ide-db/src/search.rs
@@ -528,6 +528,10 @@ impl<'a> FindUsages<'a> {
         search_scope: &SearchScope,
         name: &str,
     ) -> bool {
+        if self.scope.is_some() {
+            return false;
+        }
+
         let _p = tracing::info_span!("short_associated_function_fast_search").entered();
 
         let container = (|| {