diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs index 02ef690b94233..95281e2445a1c 100644 --- a/src/librustc_codegen_llvm/back/write.rs +++ b/src/librustc_codegen_llvm/back/write.rs @@ -2031,9 +2031,7 @@ fn start_executing_work(tcx: TyCtxt, main_thread_worker_state = MainThreadWorkerState::Idle; } Message::Done { result: Err(()), worker_id: _ } => { - shared_emitter.fatal("aborting due to worker thread failure"); - // Exit the coordinator thread - return Err(()) + bug!("worker thread panicked"); } Message::CodegenItem => { bug!("the coordinator should not receive codegen requests") @@ -2392,7 +2390,7 @@ impl OngoingCodegen { panic!("expected abort due to worker thread errors") }, Err(_) => { - sess.fatal("Error during codegen/LLVM phase."); + bug!("panic during codegen/LLVM phase"); } };