about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-03-20 18:17:23 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-03-20 18:22:15 +1100
commit85bec7a50c9a8ab466f8fbafa7b0c4eb05e6c721 (patch)
tree754ed4c50f83d34f6b3461b957f276ca7ea55b2b /compiler/rustc_mir_transform/src/coverage/query.rs
parent70206f06ca5cff08d3b84240074ec89e705ab61b (diff)
downloadrust-85bec7a50c9a8ab466f8fbafa7b0c4eb05e6c721.tar.gz
rust-85bec7a50c9a8ab466f8fbafa7b0c4eb05e6c721.zip
coverage: Remove incorrect assertions from counter allocation
These assertions detect situations where a BCB node would have both a physical
counter and one or more in-edge counters/expressions.

For most BCBs that situation would indicate an implementation bug. However,
it's perfectly fine in the case of a BCB having an edge that loops back to
itself.

Given the complexity and risk involved in fixing the assertions, and the fact
that nothing relies on them actually being true, this patch just removes them
instead.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions