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;
1919use rustc_data_structures:: sync:: Lock ;
2020#[ cfg( parallel_compiler) ]
2121use rustc_data_structures:: { outline, sync} ;
22- use rustc_errors:: { DiagnosticBuilder , ErrorGuaranteed , StashKey } ;
22+ use rustc_errors:: { DiagnosticBuilder , ErrorGuaranteed , FatalError , StashKey } ;
2323use rustc_span:: { Span , DUMMY_SP } ;
2424use std:: cell:: Cell ;
2525use std:: collections:: hash_map:: Entry ;
@@ -370,9 +370,7 @@ where
370370 // so we just return the error.
371371 cycle_error ( query, qcx, id, span)
372372 }
373- QueryResult :: Poisoned => {
374- panic ! ( "job for query '{}' failed to start and was poisoned" , query. name( ) )
375- }
373+ QueryResult :: Poisoned => FatalError . raise ( ) ,
376374 }
377375 }
378376 }
You can’t perform that action at this time.
0 commit comments