From f9893d370c4c3b015698169d27d2833742441560 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Tue, 16 Jun 2020 16:08:40 +1200 Subject: Remove old comment, remove unecessary local --- crates/ra_ide/src/hover.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/ra_ide/src/hover.rs') 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 let module = definition.module(db)?; let krate = module.krate(); let import_map = db.import_map(krate.into()); - // TODO: It should be possible to fall back to not-necessarilly-public paths if we can't find a public one, - // then hope rustdoc was run locally with `--document-private-items` - let base = import_map.path_of(ns)?; let base = once(format!("{}", krate.display_name(db)?)) - .chain(base.segments.iter().map(|name| format!("{}", name))) + .chain(import_map.path_of(ns)?.segments.iter().map(|name| format!("{}", name))) .join("/"); get_doc_url(db, &krate) -- cgit v1.2.3