mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
remove SearchScope
This commit is contained in:
parent
88ff88d318
commit
328be5721a
2 changed files with 6 additions and 10 deletions
|
@ -99,7 +99,7 @@ fn find_name<'a>(
|
|||
|
||||
fn process_definition(db: &RootDatabase, def: NameDefinition, name: String) -> Vec<FileRange> {
|
||||
let pat = name.as_str();
|
||||
let scope = def.scope(db).files;
|
||||
let scope = def.search_scope(db);
|
||||
let mut refs = vec![];
|
||||
|
||||
let is_match = |file_id: FileId, name_ref: &ast::NameRef| -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue