diff options
Diffstat (limited to 'crates/ide/src/doc_links.rs')
-rw-r--r-- | crates/ide/src/doc_links.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs index 1e102997f..7fe88577d 100644 --- a/crates/ide/src/doc_links.rs +++ b/crates/ide/src/doc_links.rs | |||
@@ -100,9 +100,6 @@ pub fn get_doc_link<T: Resolvable + Clone>(db: &dyn HirDatabase, definition: &T) | |||
100 | // BUG: For Option | 100 | // BUG: For Option |
101 | // Returns https://doc.rust-lang.org/nightly/core/prelude/v1/enum.Option.html#variant.Some | 101 | // Returns https://doc.rust-lang.org/nightly/core/prelude/v1/enum.Option.html#variant.Some |
102 | // Instead of https://doc.rust-lang.org/nightly/core/option/enum.Option.html | 102 | // Instead of https://doc.rust-lang.org/nightly/core/option/enum.Option.html |
103 | // | ||
104 | // BUG: For methods | ||
105 | // import_map.path_of(ns) fails, is not designed to resolve methods | ||
106 | fn get_doc_link_impl(db: &dyn HirDatabase, moddef: &ModuleDef) -> Option<String> { | 103 | fn get_doc_link_impl(db: &dyn HirDatabase, moddef: &ModuleDef) -> Option<String> { |
107 | // Get the outermost definition for the moduledef. This is used to resolve the public path to the type, | 104 | // Get the outermost definition for the moduledef. This is used to resolve the public path to the type, |
108 | // then we can join the method, field, etc onto it if required. | 105 | // then we can join the method, field, etc onto it if required. |