diff --git a/src/parse/session.rs b/src/parse/session.rs index 356410f5596..11af9860513 100644 --- a/src/parse/session.rs +++ b/src/parse/session.rs @@ -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, rustc_errors::error::TranslateError<'_>> { rustc_errors::emitter::silent_translate(message)