about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-24 16:00:10 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-25 12:28:11 +1100
commit6be2e5623cb7ae63ca1796759150c0cbc845bbcd (patch)
tree385273e4a49293e656be9fc737838eb68e3cc33d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent86f371ed59e4172c9891bc9b976362a73689fb12 (diff)
downloadrust-6be2e5623cb7ae63ca1796759150c0cbc845bbcd.tar.gz
rust-6be2e5623cb7ae63ca1796759150c0cbc845bbcd.zip
Use `unescape_unicode` for raw C string literals.
They can't contain `\x` escapes, which means they can't contain high
bytes, which means we can used `unescape_unicode` instead of
`unescape_mixed` to unescape them. This avoids unnecessary used of
`MixedUnit`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions