Skip to content

Commit c74db79

Browse files
committed
Rename helper struct BcbCounters to MakeBcbCounters
This avoids confusion with data structures that actually hold BCB counter information.
1 parent 49af618 commit c74db79

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_mir_transform/src/coverage/counters.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ impl CoverageCounters {
4545
basic_coverage_blocks: &mut CoverageGraph,
4646
coverage_spans: &[CoverageSpan],
4747
) -> Result<Vec<CoverageKind>, Error> {
48-
let mut bcb_counters = BcbCounters::new(self, basic_coverage_blocks);
49-
bcb_counters.make_bcb_counters(coverage_spans)
48+
MakeBcbCounters::new(self, basic_coverage_blocks).make_bcb_counters(coverage_spans)
5049
}
5150

5251
fn make_counter<F>(&mut self, debug_block_label_fn: F) -> CoverageKind
@@ -112,12 +111,12 @@ impl CoverageCounters {
112111
/// injected with `CoverageSpan`s. `Expressions` have no runtime overhead, so if a viable expression
113112
/// (adding or subtracting two other counters or expressions) can compute the same result as an
114113
/// embedded counter, an `Expression` should be used.
115-
struct BcbCounters<'a> {
114+
struct MakeBcbCounters<'a> {
116115
coverage_counters: &'a mut CoverageCounters,
117116
basic_coverage_blocks: &'a mut CoverageGraph,
118117
}
119118

120-
impl<'a> BcbCounters<'a> {
119+
impl<'a> MakeBcbCounters<'a> {
121120
fn new(
122121
coverage_counters: &'a mut CoverageCounters,
123122
basic_coverage_blocks: &'a mut CoverageGraph,

0 commit comments

Comments
 (0)