We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ascii_escapes_should_be_ascii
1 parent 856b55f commit e290582Copy full SHA for e290582
compiler/rustc_lexer/src/unescape.rs
@@ -169,8 +169,9 @@ impl Mode {
169
/// Non-byte literals should have `\xXX` escapes that are within the ASCII range.
170
fn ascii_escapes_should_be_ascii(self) -> bool {
171
match self {
172
- Mode::Char | Mode::Str | Mode::RawStr => true,
173
- Mode::Byte | Mode::ByteStr | Mode::RawByteStr | Mode::CStr | Mode::RawCStr => false,
+ Mode::Char | Mode::Str => true,
+ Mode::Byte | Mode::ByteStr | Mode::CStr => false,
174
+ Mode::RawStr | Mode::RawByteStr | Mode::RawCStr => unreachable!(),
175
}
176
177
0 commit comments