]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_parse_format/src/lib.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / compiler / rustc_parse_format / src / lib.rs
index f150f7a41ae807d9bace8b7a464312eaa04fe85b..92d974690b51486238c2f9082d248e589d3077e7 100644 (file)
@@ -730,7 +730,7 @@ fn find_skips_from_snippet(
     str_style: Option<usize>,
 ) -> (Vec<usize>, bool) {
     let snippet = match snippet {
-        Some(ref s) if s.starts_with('"') || s.starts_with("r#") => s,
+        Some(ref s) if s.starts_with('"') || s.starts_with("r\"") || s.starts_with("r#") => s,
         _ => return (vec![], false),
     };