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.
\n
\t
unescape_str_common
1 parent 08b8ba0 commit f883762Copy full SHA for f883762
compiler/rustc_lexer/src/unescape.rs
@@ -351,8 +351,6 @@ where
351
_ => scan_escape::<T>(&mut chars, mode),
352
}
353
354
- '\n' => Ok(b'\n'.into()),
355
- '\t' => Ok(b'\t'.into()),
356
'"' => Err(EscapeError::EscapeOnlyChar),
357
'\r' => Err(EscapeError::BareCarriageReturn),
358
_ => ascii_check(c, mode.characters_should_be_ascii()).map(Into::into),
0 commit comments