]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_parse/src/lexer/unicode_chars.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / compiler / rustc_parse / src / lexer / unicode_chars.rs
index 1f027c08fc3b5fe8e3fd7a52e124ea93d907eaca..829d9693e55a65615fc92d1c297d5626393fe564 100644 (file)
@@ -350,7 +350,7 @@ pub(super) fn check_for_substitution(
 
     let Some((_, ascii_name, token)) = ASCII_ARRAY.iter().find(|&&(s, _, _)| s == ascii_str) else {
         let msg = format!("substitution character not found for '{}'", ch);
-        reader.sess.span_diagnostic.span_bug_no_panic(span, &msg);
+        reader.sess.span_diagnostic.span_bug_no_panic(span, msg);
         return (None, None);
     };