@@ -100,7 +100,7 @@ use rustc_codegen_ssa::back::lto::{LtoModuleCodegen, SerializedModule, ThinModul
100
100
use rustc_data_structures:: fx:: FxIndexMap ;
101
101
use rustc_data_structures:: sync:: IntoDynSyncSend ;
102
102
use rustc_codegen_ssa:: traits:: { CodegenBackend , ExtraBackendMethods , ThinBufferMethods , WriteBackendMethods } ;
103
- use rustc_errors:: { ErrorGuaranteed , Handler } ;
103
+ use rustc_errors:: { ErrorGuaranteed , DiagCtxt } ;
104
104
use rustc_metadata:: EncodedMetadata ;
105
105
use rustc_middle:: dep_graph:: { WorkProduct , WorkProductId } ;
106
106
use rustc_middle:: util:: Providers ;
@@ -330,7 +330,7 @@ impl WriteBackendMethods for GccCodegenBackend {
330
330
unimplemented ! ( )
331
331
}
332
332
333
- unsafe fn optimize ( _cgcx : & CodegenContext < Self > , _diag_handler : & Handler , module : & ModuleCodegen < Self :: Module > , config : & ModuleConfig ) -> Result < ( ) , FatalError > {
333
+ unsafe fn optimize ( _cgcx : & CodegenContext < Self > , _diag_handler : & DiagCtxt , module : & ModuleCodegen < Self :: Module > , config : & ModuleConfig ) -> Result < ( ) , FatalError > {
334
334
module. module_llvm . context . set_optimization_level ( to_gcc_opt_level ( config. opt_level ) ) ;
335
335
Ok ( ( ) )
336
336
}
@@ -344,7 +344,7 @@ impl WriteBackendMethods for GccCodegenBackend {
344
344
unimplemented ! ( ) ;
345
345
}
346
346
347
- unsafe fn codegen ( cgcx : & CodegenContext < Self > , diag_handler : & Handler , module : ModuleCodegen < Self :: Module > , config : & ModuleConfig ) -> Result < CompiledModule , FatalError > {
347
+ unsafe fn codegen ( cgcx : & CodegenContext < Self > , diag_handler : & DiagCtxt , module : ModuleCodegen < Self :: Module > , config : & ModuleConfig ) -> Result < CompiledModule , FatalError > {
348
348
back:: write:: codegen ( cgcx, diag_handler, module, config)
349
349
}
350
350
@@ -356,7 +356,7 @@ impl WriteBackendMethods for GccCodegenBackend {
356
356
unimplemented ! ( ) ;
357
357
}
358
358
359
- fn run_link ( cgcx : & CodegenContext < Self > , diag_handler : & Handler , modules : Vec < ModuleCodegen < Self :: Module > > ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
359
+ fn run_link ( cgcx : & CodegenContext < Self > , diag_handler : & DiagCtxt , modules : Vec < ModuleCodegen < Self :: Module > > ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
360
360
back:: write:: link ( cgcx, diag_handler, modules)
361
361
}
362
362
}
0 commit comments