File tree 2 files changed +3
-4
lines changed
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(
176
176
match module. define_function ( codegened_func. func_id , context) {
177
177
Ok ( ( ) ) => { }
178
178
Err ( ModuleError :: Compilation ( CodegenError :: ImplLimitExceeded ) ) => {
179
- let handler = rustc_session:: EarlyErrorHandler :: new (
179
+ let handler = rustc_session:: EarlyDiagCtxt :: new (
180
180
rustc_session:: config:: ErrorOutputType :: default ( ) ,
181
181
) ;
182
182
handler. early_error ( format ! (
Original file line number Diff line number Diff line change @@ -231,9 +231,8 @@ pub(crate) fn write_ir_file(
231
231
let res = std:: fs:: File :: create ( clif_file_name) . and_then ( |mut file| write ( & mut file) ) ;
232
232
if let Err ( err) = res {
233
233
// 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 ( ) ) ;
237
236
handler. early_warn ( format ! ( "error writing ir file: {}" , err) ) ;
238
237
}
239
238
}
You can’t perform that action at this time.
0 commit comments