rust/compiler/rustc_mir_transform/src/coverage
Zalathar 3920e07f0b Make coverage counter IDs count up from 0, not 1
Operand types are now tracked explicitly, so there is no need to reserve ID 0
for the special always-zero counter.

As part of the renumbering, this change fixes an off-by-one error in the way
counters were counted by the `coverageinfo` query. As a result, functions
should now have exactly the number of counters they actually need, instead of
always having an extra counter that is never used.
2023-08-01 11:29:55 +10:00
..
test_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
counters.rs Make coverage counter IDs count up from 0, not 1 2023-08-01 11:29:55 +10:00
debug.rs Make coverage expression IDs count up from 0, not down from u32::MAX 2023-08-01 11:29:55 +10:00
graph.rs Replace ExpressionOperandId with enum Operand 2023-08-01 11:29:55 +10:00
mod.rs Replace ExpressionOperandId with enum Operand 2023-08-01 11:29:55 +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 Make coverage counter IDs count up from 0, not 1 2023-08-01 11:29:55 +10:00