rust/crates/ide/src
bors[bot] c0ee2f23ff
Merge #11490
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>
2022-02-21 21:57:44 +00:00
..
doc_links Bump pulldown-cmark-to-cmark, adjust usages and fix test 2022-02-06 09:04:06 +01:00
hover Merge #11481 2022-02-21 13:08:31 +00:00
prime_caches make it a config 2022-01-15 02:47:47 +00:00
syntax_highlighting fix: Fix proc-macro server not using the supplied span in Ident::new 2022-01-31 17:02:57 +01:00
typing
annotations.rs fix: Make code lenses work on attributed items 2022-02-21 18:07:47 +01:00
call_hierarchy.rs Make more precise range macro upmapping 2022-01-31 15:53:44 +01:00
call_info.rs Split parts of ide_db::call_info off into ide 2021-11-22 13:23:34 +01:00
doc_links.rs Bump pulldown-cmark-to-cmark, adjust usages and fix test 2022-02-06 09:04:06 +01:00
expand_macro.rs Move pretty-printing test out of assist 2022-01-06 16:38:25 +02:00
extend_selection.rs
file_structure.rs
fixture.rs
fn_references.rs
folding_ranges.rs
goto_declaration.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
goto_definition.rs Fix cfg_attr invalidating derive identifier IDE functionality 2022-01-30 22:47:16 +01:00
goto_implementation.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
goto_type_definition.rs Don't show trait flyimports for impl trait and placeholders 2021-12-10 19:18:21 +01:00
highlight_related.rs Remove lossy Definition::from_token/Definition::from_node methods 2022-01-04 18:29:53 +01:00
hover.rs cleanup 2022-02-15 14:47:23 +00:00
inlay_hints.rs Fix various IDE features 2022-02-21 08:34:35 +02:00
join_lines.rs Migrate to edition 2021 2021-10-21 20:10:40 +02:00
lib.rs cleanup + detect num cpus 2022-01-14 09:48:59 +00:00
markdown_remove.rs
markup.rs
matching_brace.rs
moniker.rs Remove lossy Definition::from_token/Definition::from_node methods 2022-01-04 18:29:53 +01:00
move_item.rs
navigation_target.rs Make more precise range macro upmapping 2022-01-31 15:53:44 +01:00
parent_module.rs
prime_caches.rs make it a config 2022-01-15 02:47:47 +00:00
references.rs Move fn to proc-macro conversion to name classification 2022-02-21 17:56:11 +01:00
rename.rs Use text range of name after macro expansion 2022-02-11 14:17:12 +08:00
runnables.rs Update crates/ide/src/runnables.rs 2022-02-21 15:23:09 -06:00
shuffle_crate_graph.rs internal: add "Shuffle Crate Graph" command 2021-12-07 16:37:19 +01:00
ssr.rs
static_index.rs Remove lossy Definition::from_token/Definition::from_node methods 2022-01-04 18:29:53 +01:00
status.rs status: output all crates a file belongs to 2022-01-17 18:10:01 +01:00
syntax_highlighting.rs Move format specifier lexing from syntax to ide_db 2022-01-15 13:14:59 +01:00
syntax_tree.rs
typing.rs fix: Adjust . typing auto indentation 2022-01-14 12:15:43 +01:00
view_crate_graph.rs
view_hir.rs
view_item_tree.rs