@@ -1389,21 +1389,25 @@ fn start_executing_work(sess: &Session,
1389
1389
// this to spawn a new unit of work, or it may get dropped
1390
1390
// immediately if we have no more work to spawn.
1391
1391
Message :: Token ( token) => {
1392
- if let Ok ( token) = token {
1393
- tokens. push ( token) ;
1394
-
1395
- if main_thread_worker_state == MainThreadWorkerState :: LLVMing {
1396
- // If the main thread token is used for LLVM work
1397
- // at the moment, we turn that thread into a regular
1398
- // LLVM worker thread, so the main thread is free
1399
- // to react to translation demand.
1400
- main_thread_worker_state = MainThreadWorkerState :: Idle ;
1401
- running += 1 ;
1392
+ match token {
1393
+ Ok ( token) => {
1394
+ tokens. push ( token) ;
1395
+
1396
+ if main_thread_worker_state == MainThreadWorkerState :: LLVMing {
1397
+ // If the main thread token is used for LLVM work
1398
+ // at the moment, we turn that thread into a regular
1399
+ // LLVM worker thread, so the main thread is free
1400
+ // to react to translation demand.
1401
+ main_thread_worker_state = MainThreadWorkerState :: Idle ;
1402
+ running += 1 ;
1403
+ }
1404
+ }
1405
+ Err ( e) => {
1406
+ let msg = & format ! ( "failed to acquire jobserver token: {}" , e) ;
1407
+ shared_emitter. fatal ( msg) ;
1408
+ // Exit the coordinator thread
1409
+ panic ! ( )
1402
1410
}
1403
- } else {
1404
- shared_emitter. fatal ( "failed to acquire jobserver token" ) ;
1405
- // Exit the coordinator thread
1406
- panic ! ( )
1407
1411
}
1408
1412
}
1409
1413
0 commit comments