about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-11 16:35:43 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-13 09:26:10 +1100
commit4acc5e6480e6eada1ad8d867ea31de9b998216a8 (patch)
treed2020f791bfd8a718784dc87449328f9d1ba0192 /compiler/rustc_codegen_llvm/src
parent028b6d152e904bbc02dc3cd67e4cbdffcbd039e1 (diff)
downloadrust-4acc5e6480e6eada1ad8d867ea31de9b998216a8.tar.gz
rust-4acc5e6480e6eada1ad8d867ea31de9b998216a8.zip
Don't rebuild raw strings when unescaping.
Raw strings don't have escape sequences, so for them "unescaping" just
means checking for invalid chars like bare CR. Which means there is no
need to rebuild them one char or byte at a time while escaping, because
the unescaped version will be the same. This commit removes that
rebuilding.

Also, the commit changes things so that "unescaping" is unconditional for
raw strings and raw byte strings. That's simpler and they're rare enough
that the perf effect is negligible.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions