This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ pub(crate) fn compile_fn(
176176 match module. define_function ( codegened_func. func_id , context) {
177177 Ok ( ( ) ) => { }
178178 Err ( ModuleError :: Compilation ( CodegenError :: ImplLimitExceeded ) ) => {
179- let handler = rustc_session:: EarlyErrorHandler :: new (
179+ let handler = rustc_session:: EarlyDiagCtxt :: new (
180180 rustc_session:: config:: ErrorOutputType :: default ( ) ,
181181 ) ;
182182 handler. early_error ( format ! (
Original file line number Diff line number Diff line change @@ -231,9 +231,8 @@ pub(crate) fn write_ir_file(
231231 let res = std:: fs:: File :: create ( clif_file_name) . and_then ( |mut file| write ( & mut file) ) ;
232232 if let Err ( err) = res {
233233 // Using early_warn as no Session is available here
234- let handler = rustc_session:: EarlyErrorHandler :: new (
235- rustc_session:: config:: ErrorOutputType :: default ( ) ,
236- ) ;
234+ let handler =
235+ rustc_session:: EarlyDiagCtxt :: new ( rustc_session:: config:: ErrorOutputType :: default ( ) ) ;
237236 handler. early_warn ( format ! ( "error writing ir file: {}" , err) ) ;
238237 }
239238}
You can’t perform that action at this time.
0 commit comments