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.
Mode::is_unicode_escape_disallowed
1 parent 6acf5be commit 3f99e3aCopy full SHA for 3f99e3a
compiler/rustc_lexer/src/unescape.rs
@@ -191,8 +191,9 @@ impl Mode {
191
/// Byte literals do not allow unicode escape.
192
fn is_unicode_escape_disallowed(self) -> bool {
193
match self {
194
- Byte | ByteStr | RawByteStr => true,
195
- Char | Str | RawStr | CStr | RawCStr => false,
+ Byte | ByteStr => true,
+ Char | Str | CStr => false,
196
+ RawByteStr | RawStr | RawCStr => unreachable!(),
197
}
198
199
0 commit comments