mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
remove Cancelable from fn_scopes
This commit is contained in:
parent
040a622c52
commit
18e9a710cd
8 changed files with 13 additions and 13 deletions
|
@ -128,7 +128,7 @@ impl db::RootDatabase {
|
|||
.collect::<Vec<_>>();
|
||||
ret.extend(
|
||||
descr
|
||||
.scopes(self)?
|
||||
.scopes(self)
|
||||
.find_all_refs(binding)
|
||||
.into_iter()
|
||||
.map(|ref_desc| (position.file_id, ref_desc.range)),
|
||||
|
@ -156,7 +156,7 @@ impl db::RootDatabase {
|
|||
position.file_id,
|
||||
name_ref.syntax(),
|
||||
));
|
||||
let scope = descr.scopes(db)?;
|
||||
let scope = descr.scopes(db);
|
||||
let resolved = ctry!(scope.resolve_local_name(name_ref));
|
||||
let resolved = resolved.ptr().resolve(source_file);
|
||||
let binding = ctry!(find_node_at_offset::<ast::BindPat>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue