about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorLuiz Carvalho <luizcmpc@gmail.com>2023-12-19 00:32:55 -0300
committerLuiz Carvalho <luizcmpc@gmail.com>2023-12-19 00:55:56 -0300
commit117a28a06564946b2934b7960ec84477745a0ebe (patch)
treeff74a0b094c05e3ae12d4de9f22ab70c09bfa685 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentf6635211ce8a208e11c9c809a80b66aaf2240eb7 (diff)
downloadrust-117a28a06564946b2934b7960ec84477745a0ebe.tar.gz
rust-117a28a06564946b2934b7960ec84477745a0ebe.zip
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/4cfdbd328b7171b2328d11b950b1af0978d6b1ef/compiler/rustc_ast/src/tokenstream.rs#L6837
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions