diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-19 20:29:47 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-20 17:24:10 +1000 |
| commit | bbd347409fdba70e1827ba0b07a4b84588387c62 (patch) | |
| tree | 151eaebc5ad891d57bfc488010bb163a1c3e30b5 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 3d66513fe4eaa754f868f435334acfd78e48337c (diff) | |
| download | rust-bbd347409fdba70e1827ba0b07a4b84588387c62.tar.gz rust-bbd347409fdba70e1827ba0b07a4b84588387c62.zip | |
coverage: Remove vestigial `format_counter` methods
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/coverage/mod.rs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/mod.rs b/compiler/rustc_mir_transform/src/coverage/mod.rs index 80c6d08fe0d..c75d33eeb31 100644 --- a/compiler/rustc_mir_transform/src/coverage/mod.rs +++ b/compiler/rustc_mir_transform/src/coverage/mod.rs @@ -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 } => { |
