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>(
615
615
}
616
616
617
617
pub fn print_query_stack < Qcx : QueryContext > (
618
- _qcx : Qcx ,
618
+ qcx : Qcx ,
619
619
mut current_query : Option < QueryJobId > ,
620
620
handler : & Handler ,
621
621
num_frames : Option < usize > ,
@@ -626,12 +626,13 @@ pub fn print_query_stack<Qcx: QueryContext>(
626
626
// state if it was responsible for triggering the panic.
627
627
let mut count_printed = 0 ;
628
628
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 ( ) ;
631
631
632
632
if let Some ( ref mut file) = file {
633
633
let _ = writeln ! ( file, "\n \n query stack during panic:" ) ;
634
- } while let Some ( query) = current_query {
634
+ }
635
+ while let Some ( query) = current_query {
635
636
let Some ( query_info) = query_map. as_ref ( ) . and_then ( |map| map. get ( & query) ) else {
636
637
break ;
637
638
} ;
You can’t perform that action at this time.
0 commit comments