File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
compiler/rustc_query_system/src/query Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ pub(crate) fn report_cycle<'a, D: DepKind>(
615615}
616616
617617pub fn print_query_stack < Qcx : QueryContext > (
618- _qcx : Qcx ,
618+ qcx : Qcx ,
619619 mut current_query : Option < QueryJobId > ,
620620 handler : & Handler ,
621621 num_frames : Option < usize > ,
@@ -626,12 +626,13 @@ pub fn print_query_stack<Qcx: QueryContext>(
626626 // state if it was responsible for triggering the panic.
627627 let mut count_printed = 0 ;
628628 let mut count_total = 0 ;
629- # [ cfg ( not ( parallel_compiler ) ) ]
630- let query_map = _qcx . try_collect_active_jobs ( ) ;
629+
630+ let query_map = qcx . try_collect_active_jobs ( ) ;
631631
632632 if let Some ( ref mut file) = file {
633633 let _ = writeln ! ( file, "\n \n query stack during panic:" ) ;
634- } while let Some ( query) = current_query {
634+ }
635+ while let Some ( query) = current_query {
635636 let Some ( query_info) = query_map. as_ref ( ) . and_then ( |map| map. get ( & query) ) else {
636637 break ;
637638 } ;
You can’t perform that action at this time.
0 commit comments