about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorDaniil Belov <70999565+BelovDV@users.noreply.github.com>2023-03-28 12:13:42 +0300
committerDaniil Belov <70999565+BelovDV@users.noreply.github.com>2023-03-28 17:22:30 +0300
commitbe6a09f96bbe0c0c6ce909a84ea0164112edfced (patch)
treea1b41e1d7bdd65e88f5f4ba844d16ecd3c2e213b /compiler/rustc_codegen_ssa/src
parentcbc064b341be231403d181402a786cce7f1c73f1 (diff)
downloadrust-be6a09f96bbe0c0c6ce909a84ea0164112edfced.tar.gz
rust-be6a09f96bbe0c0c6ce909a84ea0164112edfced.zip
[fix] don't panic on failure to acquire jobserver token
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
index 7ce72d21727..2dda4cd1694 100644
--- a/compiler/rustc_codegen_ssa/src/back/write.rs
+++ b/compiler/rustc_codegen_ssa/src/back/write.rs
@@ -1452,8 +1452,8 @@ fn start_executing_work<B: ExtraBackendMethods>(
                         Err(e) => {
                             let msg = &format!("failed to acquire jobserver token: {}", e);
                             shared_emitter.fatal(msg);
-                            // Exit the coordinator thread
-                            panic!("{}", msg)
+                            codegen_done = true;
+                            codegen_aborted = true;
                         }
                     }
                 }