diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-23 12:27:56 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-25 12:28:11 +1100 |
| commit | a1c07214f0f7988cbc5a645a499bb8f7dd9cbed7 (patch) | |
| tree | ac9f663663ff93eb739fd2e3cfe530c80b39af7e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ef1e2228cfd9df4059aa44740b0659fea7c5a52f (diff) | |
| download | rust-a1c07214f0f7988cbc5a645a499bb8f7dd9cbed7.tar.gz rust-a1c07214f0f7988cbc5a645a499bb8f7dd9cbed7.zip | |
Rework `CStrUnit`.
- Rename it as `MixedUnit`, because it will soon be used in more than just C string literals. - Change the `Byte` variant to `HighByte` and use it only for `\x80`..`\xff` cases. This fixes the old inexactness where ASCII chars could be encoded with either `Byte` or `Char`. - Add useful comments. - Remove `is_ascii`, in favour of `u8::is_ascii`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
