Rename DiagnosticMessage as DiagMessage.

This commit is contained in:
Nicholas Nethercote 2024-02-29 11:58:51 +11:00
parent 78c99ebfea
commit fe9ceab356

View File

@ -44,7 +44,7 @@ fn fallback_fluent_bundle(&self) -> &rustc_errors::FluentBundle {
// subdiagnostics result in a call to this.
fn translate_message<'a>(
&'a self,
message: &'a rustc_errors::DiagnosticMessage,
message: &'a rustc_errors::DiagMessage,
_: &'a rustc_errors::translation::FluentArgs<'_>,
) -> Result<Cow<'_, str>, rustc_errors::error::TranslateError<'_>> {
rustc_errors::emitter::silent_translate(message)