mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +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
|
@ -50,7 +50,7 @@ pub(crate) fn reference_definition(
|
|||
if let Some(function) =
|
||||
hir::source_binder::function_from_child_node(db, file_id, name_ref.syntax())
|
||||
{
|
||||
let scope = function.scopes(db)?;
|
||||
let scope = function.scopes(db);
|
||||
// First try to resolve the symbol locally
|
||||
if let Some(entry) = scope.resolve_local_name(name_ref) {
|
||||
let nav = NavigationTarget::from_scope_entry(file_id, &entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue