File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/rustc_query_system/src/query Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use rustc_data_structures::stack::ensure_sufficient_stack;
19
19
use rustc_data_structures:: sync:: Lock ;
20
20
#[ cfg( parallel_compiler) ]
21
21
use rustc_data_structures:: { outline, sync} ;
22
- use rustc_errors:: { DiagnosticBuilder , ErrorGuaranteed , StashKey } ;
22
+ use rustc_errors:: { DiagnosticBuilder , ErrorGuaranteed , FatalError , StashKey } ;
23
23
use rustc_span:: { Span , DUMMY_SP } ;
24
24
use std:: cell:: Cell ;
25
25
use std:: collections:: hash_map:: Entry ;
@@ -370,9 +370,7 @@ where
370
370
// so we just return the error.
371
371
cycle_error ( query, qcx, id, span)
372
372
}
373
- QueryResult :: Poisoned => {
374
- panic ! ( "job for query '{}' failed to start and was poisoned" , query. name( ) )
375
- }
373
+ QueryResult :: Poisoned => FatalError . raise ( ) ,
376
374
}
377
375
}
378
376
}
You can’t perform that action at this time.
0 commit comments