File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_query_system/src/query Expand file tree Collapse file tree 1 file changed +4
-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,12 @@ 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- let query_map = qcx. try_collect_active_jobs ( ) ;
629+ #[ cfg( not( parallel_compiler) ) ]
630+ let query_map = _qcx. try_collect_active_jobs ( ) ;
630631
631632 if let Some ( ref mut file) = file {
632633 let _ = writeln ! ( file, "\n \n query stack during panic:" ) ;
633- }
634- while let Some ( query) = current_query {
634+ } while let Some ( query) = current_query {
635635 let Some ( query_info) = query_map. as_ref ( ) . and_then ( |map| map. get ( & query) ) else {
636636 break ;
637637 } ;
You can’t perform that action at this time.
0 commit comments