mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +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
|
@ -111,9 +111,7 @@ fn def_for_doc_comment(
|
|||
Definition::Field(it) => it.resolve_doc_path(db, link, ns),
|
||||
Definition::SelfType(_)
|
||||
| Definition::Local(_)
|
||||
| Definition::TypeParam(_)
|
||||
| Definition::LifetimeParam(_)
|
||||
| Definition::ConstParam(_)
|
||||
| Definition::GenericParam(_)
|
||||
| Definition::Label(_) => return None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue