mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Restructure symbol queries
This commit is contained in:
parent
9c408970ea
commit
e7285507f6
3 changed files with 57 additions and 44 deletions
|
@ -115,7 +115,8 @@ fn find_items<'a>(
|
|||
});
|
||||
|
||||
// Query the local crate using the symbol index.
|
||||
let local_results = symbol_index::crate_symbols(db, krate, local_query)
|
||||
let local_results = local_query
|
||||
.search(&symbol_index::crate_symbols(db, krate))
|
||||
.into_iter()
|
||||
.filter_map(move |local_candidate| get_name_definition(sema, &local_candidate))
|
||||
.filter_map(|name_definition_to_import| match name_definition_to_import {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue