mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
support items that visible to the parent module
This commit is contained in:
parent
55e1910d00
commit
b5a3ee93e2
3 changed files with 68 additions and 5 deletions
|
@ -152,6 +152,7 @@ pub(crate) fn classify_name_ref(
|
|||
AssocItem(item) => Some(from_assoc_item(db, item)),
|
||||
LocalBinding(Either::A(pat)) => from_pat(db, file_id, pat),
|
||||
LocalBinding(Either::B(par)) => {
|
||||
// Not really supported
|
||||
let kind = NameKind::SelfParam(par);
|
||||
Some(NameDefinition { kind, container, visibility })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue