File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,10 @@ fn run_compiler(
349
349
} ,
350
350
} ;
351
351
352
- callbacks. config( & mut config) ;
353
-
354
- default_early_dcx. abort_if_errors( ) ;
355
352
drop( default_early_dcx) ;
356
353
354
+ callbacks. config( & mut config) ;
355
+
357
356
interface:: run_compiler( config, |compiler| {
358
357
let sess = & compiler. sess;
359
358
let codegen_backend = & * compiler. codegen_backend;
Original file line number Diff line number Diff line change @@ -1410,10 +1410,6 @@ impl EarlyDiagCtxt {
1410
1410
Self { dcx : DiagCtxt :: with_emitter ( emitter) }
1411
1411
}
1412
1412
1413
- pub fn abort_if_errors ( & self ) {
1414
- self . dcx . abort_if_errors ( )
1415
- }
1416
-
1417
1413
/// Swap out the underlying dcx once we acquire the user's preference on error emission
1418
1414
/// format. Any errors prior to that will cause an abort and all stashed diagnostics of the
1419
1415
/// previous dcx will be emitted.
You can’t perform that action at this time.
0 commit comments