diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-25 22:00:13 +0200 | 
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-30 13:18:33 +0200 | 
| commit | 23815467a2ba4a5219149cb96bada4c7bea741bf (patch) | |
| tree | d8d1459a45a207350907114dffebd6134b14be50 /compiler/rustc_parse/src/lexer/unicode_chars.rs | |
| parent | 2e0136a131f6ed5f6071adf36db08dd8d2205d19 (diff) | |
| download | rust-23815467a2ba4a5219149cb96bada4c7bea741bf.tar.gz rust-23815467a2ba4a5219149cb96bada4c7bea741bf.zip | |
inline format!() args up to and including rustc_middle
Diffstat (limited to 'compiler/rustc_parse/src/lexer/unicode_chars.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/unicode_chars.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_parse/src/lexer/unicode_chars.rs b/compiler/rustc_parse/src/lexer/unicode_chars.rs index 829d9693e55..bbfb160ebf7 100644 --- a/compiler/rustc_parse/src/lexer/unicode_chars.rs +++ b/compiler/rustc_parse/src/lexer/unicode_chars.rs @@ -349,7 +349,7 @@ pub(super) fn check_for_substitution( let span = Span::with_root_ctxt(pos, pos + Pos::from_usize(ch.len_utf8() * count)); let Some((_, ascii_name, token)) = ASCII_ARRAY.iter().find(|&&(s, _, _)| s == ascii_str) else { - let msg = format!("substitution character not found for '{}'", ch); + let msg = format!("substitution character not found for '{ch}'"); reader.sess.span_diagnostic.span_bug_no_panic(span, msg); return (None, None); }; | 
