rust/compiler/rustc_mir_transform/src/coverage
Zalathar 5ca30c4646 Store BCB counters externally, not directly in the BCB graph
Storing coverage counter information in `CoverageCounters` has a few advantages
over storing it directly inside BCB graph nodes:

- The graph doesn't need to be mutable when making the counters, making it
easier to see that the graph itself is not modified during this step.

- All of the counter data is clearly visible in one place.

- It becomes possible to use a representation that doesn't correspond 1:1 to
graph nodes, e.g. storing all the edge counters in a single hashmap instead of
several.
2023-08-13 12:18:06 +10:00
..
test_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
counters.rs Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00
debug.rs Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00
graph.rs Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00
mod.rs Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00
query.rs Make coverage counter IDs count up from 0, not 1 2023-08-01 11:29:55 +10:00
spans.rs Replace a lazy RefCell<Option<T>> with OnceCell<T> 2023-07-28 12:55:13 +10:00
tests.rs Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00