diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-17 11:00:39 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-17 11:00:39 +0000 |
commit | d641bccb0ffec543fa444ba523e8d4b63078fa53 (patch) | |
tree | 6695e5ebfeb9563bf5358a0cb89abe8456ac9172 /crates/ide/src/hover.rs | |
parent | d21f5f7d6e13b93d64235f13ac18e447af8d59e4 (diff) | |
parent | 55faa2daa3fc8bd213038a012b1c5e9ad5fd3736 (diff) |
Merge #6907
6907: Lifetime reference search r=matklad a=Veykril
PR #6787 but rewritten to make use of the HIR now. This only applies to Lifetimes, not labels. Also Higher-Ranked Trait Bounds aren't supported yet, but I feel like this PR is big enough as is which is why I left them out after noticing I forgot about them.
Supporting renaming required slight changes in the renaming module as lifetime names aren't allowed for anything but lifetimes(and labels) and vice versa for normal names.
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/hover.rs')
-rw-r--r-- | crates/ide/src/hover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index ab017d2ad..a01b0c894 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -364,7 +364,7 @@ fn hover_for_definition(db: &RootDatabase, def: Definition) -> Option<Markup> { | |||
364 | Adt::Enum(it) => from_def_source(db, it, mod_path), | 364 | Adt::Enum(it) => from_def_source(db, it, mod_path), |
365 | }) | 365 | }) |
366 | } | 366 | } |
367 | Definition::TypeParam(_) => { | 367 | Definition::TypeParam(_) | Definition::LifetimeParam(_) => { |
368 | // FIXME: Hover for generic param | 368 | // FIXME: Hover for generic param |
369 | None | 369 | None |
370 | } | 370 | } |