aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/doc_links.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/doc_links.rs')
-rw-r--r--crates/ide/src/doc_links.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs
index 678d22d03..91f4241f9 100644
--- a/crates/ide/src/doc_links.rs
+++ b/crates/ide/src/doc_links.rs
@@ -216,9 +216,7 @@ fn rewrite_intra_doc_link(
216 Definition::Field(it) => it.resolve_doc_path(db, link, ns), 216 Definition::Field(it) => it.resolve_doc_path(db, link, ns),
217 Definition::SelfType(_) 217 Definition::SelfType(_)
218 | Definition::Local(_) 218 | Definition::Local(_)
219 | Definition::TypeParam(_) 219 | Definition::GenericParam(_)
220 | Definition::ConstParam(_)
221 | Definition::LifetimeParam(_)
222 | Definition::Label(_) => return None, 220 | Definition::Label(_) => return None,
223 }?; 221 }?;
224 let krate = resolved.module(db)?.krate(); 222 let krate = resolved.module(db)?.krate();