diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-11 16:35:43 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-13 09:26:10 +1100 |
| commit | 4acc5e6480e6eada1ad8d867ea31de9b998216a8 (patch) | |
| tree | d2020f791bfd8a718784dc87449328f9d1ba0192 /compiler/rustc_codegen_llvm/src | |
| parent | 028b6d152e904bbc02dc3cd67e4cbdffcbd039e1 (diff) | |
| download | rust-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
