rust/crates
KarlWithK 5f3327a6b8
Correctly fix formatting doc tests with generics
Before the doc_test would be outputted like this:
"Foo<T, U>::t"
However, this would cause shells with shell redirection. I've changed it
so when generics are involved we simply wrap the expression under escape
chanters as so:
"\"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
2022-02-17 20:27:37 -06:00
..
base_db Add test for giving attribute proc macros valid syntax 2022-02-07 12:54:08 +01:00
cfg
flycheck
hir Add completion module tailored towards use trees 2022-02-03 15:51:57 +01:00
hir_def Merge #11444 2022-02-12 12:48:46 +00:00
hir_expand Merge #11444 2022-02-12 12:48:46 +00:00
hir_ty Infer the array size for slice patterns 2022-02-16 12:19:26 +00:00
ide Correctly fix formatting doc tests with generics 2022-02-17 20:27:37 -06:00
ide_assists Apply review fixes 2022-02-14 20:41:01 -05:00
ide_completion Merge #11444 2022-02-12 12:48:46 +00:00
ide_db Apply review fixes 2022-02-14 20:41:01 -05:00
ide_diagnostics More correct $crate handling in eager macros 2022-01-27 16:57:53 +01:00
ide_ssr fix: Complete functions and methods from block level impls 2022-02-01 23:29:40 +01:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe Impr mbe: remove unecessary temporary vec 2022-02-15 10:21:14 +01:00
parser Fix style 2022-02-14 07:41:50 +01:00
paths
proc_macro_api Set current working directory for procedural macros 2022-01-27 16:18:12 +03:00
proc_macro_srv fix: Fix proc-macro server not using the supplied span in Ident::new 2022-01-31 17:02:57 +01:00
proc_macro_test
profile Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
project_model minor: Add some debug traces for cfg fetching 2022-02-01 13:35:34 +01:00
rust-analyzer correct the description of Struct GlobalState 2022-02-14 19:30:21 +08:00
sourcegen
stdx Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
syntax Move attribute path completions into attribute completion module 2022-02-03 15:50:14 +01:00
test_utils
text_edit
toolchain
tt Track synthetic tokens, to be able to remove them again later 2022-02-08 18:13:18 +01:00
vfs
vfs-notify