mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Reapply "Detect NulInCStr
error earlier."
This reverts commit 0ea056552a
.
This commit is contained in:
parent
0d52934d19
commit
b1b6e0c41a
2 changed files with 4 additions and 0 deletions
|
@ -369,6 +369,7 @@ fn error_to_diagnostic_message(error: EscapeError, mode: Mode) -> &'static str {
|
|||
"non-ASCII character in byte string literal"
|
||||
}
|
||||
EscapeError::NonAsciiCharInByte => "non-ASCII character in raw byte string literal",
|
||||
EscapeError::NulInCStr => "null character in C string literal",
|
||||
EscapeError::UnskippedWhitespaceWarning => "",
|
||||
EscapeError::MultipleSkippedLinesWarning => "",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue