diff options
author | bors <bors@rust-lang.org> | 2022-11-24 21:00:48 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-11-24 21:00:48 +0000 |
commit | 76e2e41121af3f4ca4835a0a0c8fdf290d5e36ba (patch) | |
tree | d131f40516f891ef65803a11a97d47e867d57275 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | 5e3ad5ddf6d6ec44a447454493725032ee6e8358 (diff) | |
parent | 427b63b676c89dc6be407181f25f74ddc9950ea1 (diff) | |
download | rust-76e2e41121af3f4ca4835a0a0c8fdf290d5e36ba.tar.gz |
Auto merge of #13652 - jhgg:hir-expand/fix-compile-error-expansion, r=Veykril
hir-expand: fix compile_error! expansion not unquoting strings
expanding `compile_error!` would not properly unquote strings, leading to quite ugly diagnostic messages:

this fixes it, using the conveniently placed `unquote_str` function, which now makes errors look like:

additionally, using `unquote_str` has the cool side-effect of *also* handling raw strings, so this fixes a fixme too!
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions