i'd guess about 70% of "bad escape" cases occur when someone meant to use a raw string literal because they're passing it directly to Regex::new(). this emits an advisory (Applicability::MaybeIncorrect) help: suggestion to the user that they use an r"" string, on top of the normal notes about looking at the string literal documentation/spec. |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| tokentrees.rs | ||
| unescape_error_reporting.rs | ||
| unicode_chars.rs | ||