about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer/unicode_chars.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-17 22:25:47 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-18 16:06:21 +1100
commit9df1576e1d477cfbfb4f39e779ce48552f9c28da (patch)
tree8a456da5ceafc0884fc1983266c3ca839ca9f989 /compiler/rustc_parse/src/lexer/unicode_chars.rs
parent9b1f87c7e8ff6798e0c770eb6229a77682948976 (diff)
downloadrust-9df1576e1d477cfbfb4f39e779ce48552f9c28da.tar.gz
rust-9df1576e1d477cfbfb4f39e779ce48552f9c28da.zip
Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.
Diffstat (limited to 'compiler/rustc_parse/src/lexer/unicode_chars.rs')
-rw-r--r--compiler/rustc_parse/src/lexer/unicode_chars.rs2
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 0dc60688955..dac7569e385 100644
--- a/compiler/rustc_parse/src/lexer/unicode_chars.rs
+++ b/compiler/rustc_parse/src/lexer/unicode_chars.rs
@@ -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(span, msg);
+        reader.sess.dcx.span_bug(span, msg);
     };
 
     // special help suggestion for "directed" double quotes