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(
349349 } ,
350350 } ;
351351
352- callbacks. config( & mut config) ;
353-
354- default_early_dcx. abort_if_errors( ) ;
355352 drop( default_early_dcx) ;
356353
354+ callbacks. config( & mut config) ;
355+
357356 interface:: run_compiler( config, |compiler| {
358357 let sess = & compiler. sess;
359358 let codegen_backend = & * compiler. codegen_backend;
Original file line number Diff line number Diff line change @@ -1410,10 +1410,6 @@ impl EarlyDiagCtxt {
14101410 Self { dcx : DiagCtxt :: with_emitter ( emitter) }
14111411 }
14121412
1413- pub fn abort_if_errors ( & self ) {
1414- self . dcx . abort_if_errors ( )
1415- }
1416-
14171413 /// Swap out the underlying dcx once we acquire the user's preference on error emission
14181414 /// format. Any errors prior to that will cause an abort and all stashed diagnostics of the
14191415 /// previous dcx will be emitted.
You can’t perform that action at this time.
0 commit comments