aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/doc_links.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs
index 2f6c59c40..0608c2ac6 100644
--- a/crates/ide/src/doc_links.rs
+++ b/crates/ide/src/doc_links.rs
@@ -103,8 +103,8 @@ pub fn get_doc_link<T: Resolvable + Clone>(db: &dyn HirDatabase, definition: &T)
103 get_doc_link_impl(db, &module_def) 103 get_doc_link_impl(db, &module_def)
104} 104}
105 105
106// TODO: 106// FIXME:
107// BUG: For Option 107// BUG: For Option::Some
108// Returns https://doc.rust-lang.org/nightly/core/prelude/v1/enum.Option.html#variant.Some 108// Returns https://doc.rust-lang.org/nightly/core/prelude/v1/enum.Option.html#variant.Some
109// Instead of https://doc.rust-lang.org/nightly/core/option/enum.Option.html 109// Instead of https://doc.rust-lang.org/nightly/core/option/enum.Option.html
110// This could be worked around by turning the `EnumVariant` into `Enum` before attempting resolution, 110// This could be worked around by turning the `EnumVariant` into `Enum` before attempting resolution,
@@ -405,7 +405,7 @@ fn get_symbol_fragment(db: &dyn HirDatabase, field_or_assoc: &FieldOrAssocItem)
405 let is_trait_method = 405 let is_trait_method =
406 matches!(function.method_owner(db), Some(MethodOwner::Trait(..))); 406 matches!(function.method_owner(db), Some(MethodOwner::Trait(..)));
407 // This distinction may get more complicated when specialisation is available. 407 // This distinction may get more complicated when specialisation is available.
408 // In particular this decision is made based on whether a method 'has defaultness'. 408 // Rustdoc makes this decision based on whether a method 'has defaultness'.
409 // Currently this is only the case for provided trait methods. 409 // Currently this is only the case for provided trait methods.
410 if is_trait_method && !function.has_body(db) { 410 if is_trait_method && !function.has_body(db) {
411 format!("#tymethod.{}", function.name(db)) 411 format!("#tymethod.{}", function.name(db))