Prefer dcx methods over fields or fields' methods
This commit is contained in:
@@ -351,7 +351,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.psess.dcx.span_bug(span, msg);
|
||||
reader.dcx().span_bug(span, msg);
|
||||
};
|
||||
|
||||
// special help suggestion for "directed" double quotes
|
||||
|
||||
Reference in New Issue
Block a user