rust/compiler/rustc_mir_transform/src/coverage
León Orell Valerian Liehr bb8a20678c
Rollup merge of #134029 - Zalathar:zero, r=oli-obk
coverage: Use a query to find counters/expressions that must be zero

As of #133446, this query (`coverage_ids_info`) determines which counter/expression IDs are unused. So with only a little extra work, we can take the code that was using that information to determine which coverage counters/expressions must be zero, and move that inside the query as well.

There should be no change in compiler output.
2024-12-10 08:55:59 +01:00
..
counters coverage: Add an extra "transcribe" step after counter creation 2024-12-04 17:50:52 +11:00
spans reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
counters.rs coverage: Prefer to visit nodes whose predecessors have been visited 2024-12-07 12:13:12 +11:00
graph.rs coverage: Prefer to visit nodes whose predecessors have been visited 2024-12-07 12:13:12 +11:00
mappings.rs fix a couple clippy:complexitys 2024-10-23 22:15:59 +02:00
mod.rs coverage: Rename CounterIncrementSite to just Site 2024-12-04 17:00:25 +11:00
query.rs coverage: Use a query to find counters/expressions that must be zero 2024-12-08 20:53:39 +11:00
spans.rs fix a couple clippy:complexitys 2024-10-23 22:15:59 +02:00
tests.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
unexpand.rs coverage: Treat await similar to a macro 2024-09-06 17:01:59 +12:00