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 | 56514076ac93e1417c8b4d15e3ce21da0dc6353f (patch) | |
| tree | 31c45f664ea29e42cec235865d1575805f45f6cd /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 85d56eeb63493c2b707883fb842b4fe40396beae (diff) | |
| download | rust-56514076ac93e1417c8b4d15e3ce21da0dc6353f.tar.gz rust-56514076ac93e1417c8b4d15e3ce21da0dc6353f.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_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
