coverage: Remove vestigial format_counter
methods
This commit is contained in:
parent
3d66513fe4
commit
bbd347409f
2 changed files with 20 additions and 40 deletions
|
@ -286,22 +286,15 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
|
|||
let new_bb = inject_edge_counter_basic_block(self.mir_body, from_bb, to_bb);
|
||||
debug!(
|
||||
"Edge {:?} (last {:?}) -> {:?} (leader {:?}) requires a new MIR \
|
||||
BasicBlock {:?}, for unclaimed edge counter {}",
|
||||
edge_from_bcb,
|
||||
from_bb,
|
||||
target_bcb,
|
||||
to_bb,
|
||||
new_bb,
|
||||
self.format_counter(&counter_kind),
|
||||
BasicBlock {:?}, for unclaimed edge counter {:?}",
|
||||
edge_from_bcb, from_bb, target_bcb, to_bb, new_bb, counter_kind,
|
||||
);
|
||||
new_bb
|
||||
} else {
|
||||
let target_bb = self.bcb_last_bb(target_bcb);
|
||||
debug!(
|
||||
"{:?} ({:?}) gets a new Coverage statement for unclaimed counter {}",
|
||||
target_bcb,
|
||||
target_bb,
|
||||
self.format_counter(&counter_kind),
|
||||
"{:?} ({:?}) gets a new Coverage statement for unclaimed counter {:?}",
|
||||
target_bcb, target_bb, counter_kind,
|
||||
);
|
||||
target_bb
|
||||
};
|
||||
|
@ -336,11 +329,6 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
|
|||
&self.basic_coverage_blocks[bcb]
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn format_counter(&self, counter_kind: &BcbCounter) -> String {
|
||||
format!("{counter_kind:?}")
|
||||
}
|
||||
|
||||
fn make_mir_coverage_kind(&self, counter_kind: &BcbCounter) -> CoverageKind {
|
||||
match *counter_kind {
|
||||
BcbCounter::Counter { id } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue