rust/compiler/rustc_mir_transform/src/coverage
Matthias Krüger 13b9bf5024
Rollup merge of #121492 - Zalathar:hole, r=fmease
coverage: Rename `is_closure` to `is_hole`

Extracted from #121433, since I was having second thoughts about some of the other changes bundled in that PR, but these changes are still fine.

---

When refining covspans, we don't specifically care which ones represent closures; we just want to know which ones represent "holes" that should be carved out of other spans and then discarded.

(Closures are currently the only source of hole spans, but in the future we might want to also create hole spans for nested items and inactive `#[cfg(..)]` regions.)

``@rustbot`` label +A-code-coverage
2024-02-23 17:02:04 +01:00
..
spans coverage: Rename is_closure to is_hole 2024-02-23 19:56:00 +11:00
counters.rs coverage: Split out counter increment sites from BCB node/edge counters 2024-02-02 10:50:05 +11:00
graph.rs coverage: Use variable name this in CoverageGraph::from_mir 2024-02-23 11:42:28 +11:00
mod.rs Rollup merge of #120564 - Zalathar:increment-site, r=oli-obk 2024-02-07 18:24:43 +01:00
query.rs remove redundant imports 2023-12-10 10:56:22 +08:00
spans.rs coverage: Rename is_closure to is_hole 2024-02-23 19:56:00 +11:00
tests.rs coverage: Make coverage_counters a local variable 2023-12-30 22:36:11 +11:00