Updated search to expose some more functions and to make search take the search scope by reference.

This commit is contained in:
Josiah Bills 2023-07-09 17:20:18 -04:00
parent 5f11c9a1c3
commit b9cef03230
12 changed files with 27 additions and 28 deletions

View file

@ -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);