mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Use hir::GenericParam in ide_db::Definition instead of relisting all 3
This commit is contained in:
parent
6a0a47dd14
commit
b795128dde
9 changed files with 65 additions and 42 deletions
|
@ -130,7 +130,10 @@ pub(crate) fn find_all_refs(
|
|||
kind = ReferenceKind::FieldShorthandForLocal;
|
||||
}
|
||||
}
|
||||
} else if matches!(def, Definition::LifetimeParam(_) | Definition::Label(_)) {
|
||||
} else if matches!(
|
||||
def,
|
||||
Definition::GenericParam(hir::GenericParam::LifetimeParam(_)) | Definition::Label(_)
|
||||
) {
|
||||
kind = ReferenceKind::Lifetime;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue