diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 82aa24f4f..9f8ab4795 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -589,11 +589,8 @@ fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> O | |||
589 | let module = definition.module(db)?; | 589 | let module = definition.module(db)?; |
590 | let krate = module.krate(); | 590 | let krate = module.krate(); |
591 | let import_map = db.import_map(krate.into()); | 591 | let import_map = db.import_map(krate.into()); |
592 | // TODO: It should be possible to fall back to not-necessarilly-public paths if we can't find a public one, | ||
593 | // then hope rustdoc was run locally with `--document-private-items` | ||
594 | let base = import_map.path_of(ns)?; | ||
595 | let base = once(format!("{}", krate.display_name(db)?)) | 592 | let base = once(format!("{}", krate.display_name(db)?)) |
596 | .chain(base.segments.iter().map(|name| format!("{}", name))) | 593 | .chain(import_map.path_of(ns)?.segments.iter().map(|name| format!("{}", name))) |
597 | .join("/"); | 594 | .join("/"); |
598 | 595 | ||
599 | get_doc_url(db, &krate) | 596 | get_doc_url(db, &krate) |