rust/crates
bors 484525f8d7 Auto merge of #16158 - saiintbrisson:fix/mbe/desugar-comment-to-raw-string, r=Veykril
fix(mbe): desugar doc correctly for mbe

Fixes #16110.

The way rust desugars doc comments when expanding macros is rendering it as raw strings delimited with hashes. Rust-analyzer wasn't aware of this, so the desugared doc comments wouldn't match correctly when on the LHS of macro declarations.

This PR fixes this by porting the code used by rustc:
59096cdad0/compiler/rustc_ast/src/tokenstream.rs (L662-L671)
2023-12-19 07:00:35 +00:00
..
base-db Auto merge of #16151 - lnicola:minimal-2024-edition, r=davidbarsky 2023-12-18 17:33:20 +00:00
cfg internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
flycheck internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
hir internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
hir-def Auto merge of #16158 - saiintbrisson:fix/mbe/desugar-comment-to-raw-string, r=Veykril 2023-12-19 07:00:35 +00:00
hir-expand internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
hir-ty Auto merge of #16152 - Austaras:alias, r=Veykril 2023-12-18 15:08:36 +00:00
ide minor: use a single push_str instead of 2 push 2023-12-19 11:17:09 +05:00
ide-assists internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
ide-completion internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
ide-db internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
ide-diagnostics internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
ide-ssr internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
intern internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
limit Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
load-cargo internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
mbe fix(mbe): desugar doc correctly for mbe 2023-12-19 00:55:56 -03:00
parser Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
paths Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
proc-macro-api internal: Split out a span crate 2023-12-18 14:08:33 +01:00
proc-macro-srv Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb 2023-12-17 04:23:08 +00:00
proc-macro-srv-cli Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
proc-macro-test Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
profile Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
project-model Auto merge of #16151 - lnicola:minimal-2024-edition, r=davidbarsky 2023-12-18 17:33:20 +00:00
rust-analyzer internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
rustc-dependencies Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
sourcegen Don't auto-publish sourcegen 2023-12-18 15:54:01 +02:00
span Move the SpanMap definition into the span crate 2023-12-18 14:50:48 +01:00
stdx Auto merge of #118817 - lnicola:sync-from-ra, r=lnicola 2023-12-12 08:22:37 +00:00
syntax internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
test-fixture internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
test-utils internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
text-edit Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
toolchain Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00
tt internal: Split out a span crate 2023-12-18 14:08:33 +01:00
vfs internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
vfs-notify Merge commit '457b966b171b09a7e57acb710fbca29a4b3526f0' into sync-from-ra 2023-12-11 11:16:01 +02:00