about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-19 07:00:35 +0000
committerbors <bors@rust-lang.org>2023-12-19 07:00:35 +0000
commit484525f8d7c1721f58b16b3ecfc0e7454928a977 (patch)
tree9b07202ad9105170062b3da9acb8079c78441248 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentf1d09c9c7c4a27c7f5b1aa177428493d147c5e6f (diff)
parent6f58e98f2ca1bbb19e6dfee9f2373d2e4d7715ed (diff)
downloadrust-484525f8d7c1721f58b16b3ecfc0e7454928a977.tar.gz
rust-484525f8d7c1721f58b16b3ecfc0e7454928a977.zip
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:
https://github.com/rust-lang/rust/blob/59096cdad0e527ce4d254b55aca58539f726d3d6/compiler/rustc_ast/src/tokenstream.rs#L662-L671
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions