diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-22 16:58:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-25 12:22:17 +1100 |
| commit | 314dbc7f2250cc7bece306254f6bfafc96bf913f (patch) | |
| tree | 3da47f3fb3b3999f66cf71b40f31403289959a96 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 0011fac90d2846ea3c04506238ff6e4ed3ce0efe (diff) | |
| download | rust-314dbc7f2250cc7bece306254f6bfafc96bf913f.tar.gz rust-314dbc7f2250cc7bece306254f6bfafc96bf913f.zip | |
Avoid useless checking in `from_token_lit`.
The parser already does a check-only unescaping which catches all errors. So the checking done in `from_token_lit` never hits. But literals causing warnings can still occur in `from_token_lit`. So the commit changes `str-escape.rs` to use byte string literals and C string literals as well, to give better coverage and ensure the new assertions in `from_token_lit` are correct.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
