@@ -101,9 +101,9 @@ pub(crate) struct DynamicLinkingWithLTO;
101
101
102
102
pub ( crate ) struct ParseTargetMachineConfig < ' a > ( pub LlvmError < ' a > ) ;
103
103
104
- impl < EM : EmissionGuarantee > IntoDiagnostic < ' _ , EM > for ParseTargetMachineConfig < ' _ > {
105
- fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , EM > {
106
- let diag: DiagnosticBuilder < ' _ , EM > = self . 0 . into_diagnostic ( handler) ;
104
+ impl < G : EmissionGuarantee > IntoDiagnostic < ' _ , G > for ParseTargetMachineConfig < ' _ > {
105
+ fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , G > {
106
+ let diag: DiagnosticBuilder < ' _ , G > = self . 0 . into_diagnostic ( handler) ;
107
107
let ( message, _) = diag. styled_message ( ) . first ( ) . expect ( "`LlvmError` with no message" ) ;
108
108
let message = handler. eagerly_translate_to_string ( message. clone ( ) , diag. args ( ) ) ;
109
109
@@ -183,8 +183,8 @@ pub enum LlvmError<'a> {
183
183
184
184
pub ( crate ) struct WithLlvmError < ' a > ( pub LlvmError < ' a > , pub String ) ;
185
185
186
- impl < EM : EmissionGuarantee > IntoDiagnostic < ' _ , EM > for WithLlvmError < ' _ > {
187
- fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , EM > {
186
+ impl < G : EmissionGuarantee > IntoDiagnostic < ' _ , G > for WithLlvmError < ' _ > {
187
+ fn into_diagnostic ( self , handler : & ' _ Handler ) -> DiagnosticBuilder < ' _ , G > {
188
188
use LlvmError :: * ;
189
189
let msg_with_llvm_err = match & self . 0 {
190
190
WriteOutput { .. } => fluent:: codegen_llvm_write_output_with_llvm_err,
0 commit comments