Use debug_assert!.

This commit is contained in:
Stephen Chung
2023-02-12 00:13:54 +08:00
parent 8685323b15
commit 9f18d6519d
5 changed files with 6 additions and 6 deletions

View File

@@ -932,7 +932,7 @@ pub fn parse_string_literal(
}
loop {
assert!(
debug_assert!(
!verbatim || escape.is_empty(),
"verbatim strings should not have any escapes"
);