mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Simplify
This commit is contained in:
parent
b1575528c0
commit
8eddc64f86
5 changed files with 158 additions and 157 deletions
|
@ -88,7 +88,7 @@ use triomphe::Arc;
|
|||
use crate::db::{DefDatabase, HirDatabase};
|
||||
|
||||
pub use crate::{
|
||||
attrs::{DocLinkDef, HasAttrs},
|
||||
attrs::{resolve_doc_path_on, HasAttrs},
|
||||
diagnostics::{
|
||||
AnyDiagnostic, BreakOutsideOfLoop, CaseType, ExpectedFunction, InactiveCode,
|
||||
IncoherentImpl, IncorrectCase, InvalidDeriveTarget, MacroDefError, MacroError,
|
||||
|
@ -4839,3 +4839,10 @@ pub enum ItemContainer {
|
|||
ExternBlock(),
|
||||
Crate(CrateId),
|
||||
}
|
||||
|
||||
/// Subset of `ide_db::Definition` that doc links can resolve to.
|
||||
pub enum DocLinkDef {
|
||||
ModuleDef(ModuleDef),
|
||||
Field(Field),
|
||||
SelfType(Trait),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue