mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Updated search to expose some more functions and to make search take the search scope by reference.
This commit is contained in:
parent
5f11c9a1c3
commit
b9cef03230
12 changed files with 27 additions and 28 deletions
|
@ -74,7 +74,7 @@ pub(crate) fn find_all_refs(
|
|||
}
|
||||
});
|
||||
let mut usages =
|
||||
def.usages(sema).set_scope(search_scope.clone()).include_self_refs().all();
|
||||
def.usages(sema).set_scope(search_scope.as_ref()).include_self_refs().all();
|
||||
|
||||
if literal_search {
|
||||
retain_adt_literal_usages(&mut usages, def, sema);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue