mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +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
|
@ -216,9 +216,7 @@ fn rewrite_intra_doc_link(
|
|||
Definition::Field(it) => it.resolve_doc_path(db, link, ns),
|
||||
Definition::SelfType(_)
|
||||
| Definition::Local(_)
|
||||
| Definition::TypeParam(_)
|
||||
| Definition::ConstParam(_)
|
||||
| Definition::LifetimeParam(_)
|
||||
| Definition::GenericParam(_)
|
||||
| Definition::Label(_) => return None,
|
||||
}?;
|
||||
let krate = resolved.module(db)?.krate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue