mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
remove Cancelable from nameres
This commit is contained in:
parent
18e9a710cd
commit
490112dea1
10 changed files with 52 additions and 66 deletions
|
@ -85,7 +85,7 @@ pub(crate) fn reference_definition(
|
|||
.find_map(ast::Path::cast)
|
||||
.and_then(hir::Path::from_ast)
|
||||
{
|
||||
let resolved = module.resolve_path(db, &path)?;
|
||||
let resolved = module.resolve_path(db, &path);
|
||||
if let Some(def_id) = resolved.take_types().or(resolved.take_values()) {
|
||||
if let Some(target) = NavigationTarget::from_def(db, def_id.resolve(db)) {
|
||||
return Ok(Exact(target));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue