diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-27 16:32:22 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-28 08:31:24 +1000 |
| commit | 94cb5e86ea50ec878b1a5de9b0b64bb35e8027e3 (patch) | |
| tree | 666016d3d218de3bff7a7ec52c2c8fe06b93bee9 /compiler/rustc_codegen_llvm/src | |
| parent | c91c64708b1acf3c262a2a6d6551f4bc0acfa656 (diff) | |
| download | rust-94cb5e86ea50ec878b1a5de9b0b64bb35e8027e3.tar.gz rust-94cb5e86ea50ec878b1a5de9b0b64bb35e8027e3.zip | |
Small cleanups in unescaping code.
- Rename `unescape_raw_str_or_raw_byte_str` as `unescape_raw_str_or_byte_str`, which is more accurate. - Remove the unused `Mode::in_single_quotes` method. - Make some assertions more precise, and add a missing one to `unescape_char_or_byte`. - Change all the assertions to `debug_assert!`, because this code is reasonably hot, and the assertions aren't required for memory safety, and any violations are likely to be sufficiently obvious that normal tests will trigger them.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
