@@ -250,13 +250,12 @@ impl<'a> MakeBcbCounters<'a> {
250
250
fn make_branch_counters (
251
251
& mut self ,
252
252
traversal : & TraverseCoverageGraphWithLoops < ' _ > ,
253
- branching_bcb : BasicCoverageBlock ,
253
+ from_bcb : BasicCoverageBlock ,
254
254
branching_counter_operand : CovTerm ,
255
255
) {
256
- let branches = self . bcb_branches ( branching_bcb ) ;
256
+ let branches = self . bcb_branches ( from_bcb ) ;
257
257
debug ! (
258
- "{:?} has some branch(es) without counters:\n {}" ,
259
- branching_bcb,
258
+ "{from_bcb:?} has some branch(es) without counters:\n {}" ,
260
259
branches
261
260
. iter( )
262
261
. map( |branch| { format!( "{:?}: {:?}" , branch, self . branch_counter( branch) ) } )
@@ -281,14 +280,13 @@ impl<'a> MakeBcbCounters<'a> {
281
280
if branch != expression_branch {
282
281
let branch_counter_operand = if branch. is_only_path_to_target ( ) {
283
282
debug ! (
284
- " {:?} has only one incoming edge (from {:?}), so adding a \
285
- counter",
286
- branch, branching_bcb
283
+ " {branch:?} has only one incoming edge (from {from_bcb:?}), \
284
+ so adding a counter",
287
285
) ;
288
286
self . get_or_make_counter_operand ( branch. target_bcb )
289
287
} else {
290
288
debug ! ( " {:?} has multiple incoming edges, so adding an edge counter" , branch) ;
291
- self . get_or_make_edge_counter_operand ( branching_bcb , branch. target_bcb )
289
+ self . get_or_make_edge_counter_operand ( from_bcb , branch. target_bcb )
292
290
} ;
293
291
if let Some ( sumup_counter_operand) =
294
292
some_sumup_counter_operand. replace ( branch_counter_operand)
@@ -325,7 +323,7 @@ impl<'a> MakeBcbCounters<'a> {
325
323
if expression_branch. is_only_path_to_target ( ) {
326
324
self . coverage_counters . set_bcb_counter ( bcb, expression) ;
327
325
} else {
328
- self . coverage_counters . set_bcb_edge_counter ( branching_bcb , bcb, expression) ;
326
+ self . coverage_counters . set_bcb_edge_counter ( from_bcb , bcb, expression) ;
329
327
}
330
328
}
331
329
0 commit comments