mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-22 18:05:07 +00:00
2aa7f2ece5
6750: Remove documentation query, move doc handling to attributes r=matklad a=Veykril Fixes #3182 Removes the documentation query in favor of `Attrs::docs`. Attrs already handlded doc comments partially but the alloc saving check was wrong so it only worked when other attributes existed as well. Unfortunately the `new` constructor has to do an intermediate allocation now because we need to keep the order of mixed doc attributes and doc comments. I've also partially adjusted the `hover` module to have its tests check the changes, it still has some `HasSource` trait usage due to the `ShortLabel` trait usage, as that is only implemented on the Ast parts and not the Hir, should this ideally be implemented for the Hir types as well?(would be a follow up PR of course) Co-authored-by: Lukas Wirth <lukastw97@gmail.com> |
||
---|---|---|
.. | ||
diagnostics | ||
display | ||
references | ||
syntax_highlighting | ||
typing | ||
call_hierarchy.rs | ||
diagnostics.rs | ||
display.rs | ||
doc_links.rs | ||
expand_macro.rs | ||
extend_selection.rs | ||
file_structure.rs | ||
fixture.rs | ||
fn_references.rs | ||
folding_ranges.rs | ||
goto_definition.rs | ||
goto_implementation.rs | ||
goto_type_definition.rs | ||
hover.rs | ||
inlay_hints.rs | ||
join_lines.rs | ||
lib.rs | ||
markdown_remove.rs | ||
markup.rs | ||
matching_brace.rs | ||
parent_module.rs | ||
prime_caches.rs | ||
references.rs | ||
runnables.rs | ||
status.rs | ||
syntax_highlighting.rs | ||
syntax_tree.rs | ||
typing.rs |