c0ee2f23ff
11490: Correctly fix formatting doc tests with generics r=Veykril a=KarlWithK Before the doc_test would be outputted like this: ```zsh "Foo<T, U>::t" ``` However, this would cause problems with shell redirection. I've changed it so when generics are involved we simply wrap the expression under quotes as so: ```zsh "\"Foo<T, U>::t\"" ``` Note: At the cost of adding this, I had to allocate a new string via `format!{}`. However, I argue this is alright as this for just for outputting the name of the doc test. The following tests have been changed: ``` runnables::tests::doc_test_type_params runnables::tests::test_doc_runnables_impl_mod runnables::tests::test_runnables_doc_test_in_impl ``` Closes https://github.com/rust-analyzer/rust-analyzer/issues/11489 Co-authored-by: KarlWithK <jocelinc60@outlook.com> Co-authored-by: SeniorMars <jocelinc60@outlook.com> |
||
---|---|---|
.. | ||
doc_links | ||
hover | ||
prime_caches | ||
syntax_highlighting | ||
typing | ||
annotations.rs | ||
call_hierarchy.rs | ||
call_info.rs | ||
doc_links.rs | ||
expand_macro.rs | ||
extend_selection.rs | ||
file_structure.rs | ||
fixture.rs | ||
fn_references.rs | ||
folding_ranges.rs | ||
goto_declaration.rs | ||
goto_definition.rs | ||
goto_implementation.rs | ||
goto_type_definition.rs | ||
highlight_related.rs | ||
hover.rs | ||
inlay_hints.rs | ||
join_lines.rs | ||
lib.rs | ||
markdown_remove.rs | ||
markup.rs | ||
matching_brace.rs | ||
moniker.rs | ||
move_item.rs | ||
navigation_target.rs | ||
parent_module.rs | ||
prime_caches.rs | ||
references.rs | ||
rename.rs | ||
runnables.rs | ||
shuffle_crate_graph.rs | ||
ssr.rs | ||
static_index.rs | ||
status.rs | ||
syntax_highlighting.rs | ||
syntax_tree.rs | ||
typing.rs | ||
view_crate_graph.rs | ||
view_hir.rs | ||
view_item_tree.rs |