mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add hir::Local
This commit is contained in:
parent
5ac4ffbc12
commit
8b7f853cc1
14 changed files with 171 additions and 173 deletions
|
@ -86,8 +86,7 @@ pub(crate) fn find_all_refs(
|
|||
Some((adt, _)) => adt.to_nav(db),
|
||||
None => return None,
|
||||
},
|
||||
NameKind::Pat((_, pat)) => NavigationTarget::from_pat(db, position.file_id, pat),
|
||||
NameKind::SelfParam(par) => NavigationTarget::from_self_param(position.file_id, par),
|
||||
NameKind::Local(local) => local.to_nav(db),
|
||||
NameKind::GenericParam(_) => return None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue