File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_mir_transform/src/coverage Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -374,8 +374,9 @@ impl<'a> MakeBcbCounters<'a> {
374374 // counters and/or expressions of its incoming edges. This will recursively get or create
375375 // counters for those incoming edges first, then call `make_expression()` to sum them up,
376376 // with additional intermediate expressions as needed.
377+ let _sumup_debug_span = debug_span ! ( "(preparing sum-up expression)" ) . entered ( ) ;
378+
377379 let mut predecessors = self . bcb_predecessors ( bcb) . to_owned ( ) . into_iter ( ) ;
378- debug ! ( "{bcb:?} has multiple incoming edges and will need a sum-up expression" ) ;
379380 let first_edge_counter_operand =
380381 self . get_or_make_edge_counter_operand ( predecessors. next ( ) . unwrap ( ) , bcb) ?;
381382 let mut some_sumup_edge_counter_operand = None ;
@@ -399,6 +400,8 @@ impl<'a> MakeBcbCounters<'a> {
399400 Op :: Add ,
400401 some_sumup_edge_counter_operand. unwrap ( ) ,
401402 ) ;
403+ drop ( _sumup_debug_span) ;
404+
402405 debug ! ( "{bcb:?} gets a new counter (sum of predecessor counters): {counter_kind:?}" ) ;
403406 self . coverage_counters . set_bcb_counter ( bcb, counter_kind)
404407 }
You can’t perform that action at this time.
0 commit comments