Closed
Description
#111752 introduced this behaviour in coverage reports:
LL| | if
LL| | !
LL| 1| is_true
LL| 0| {
Notice that the line with !
no longer has a coverage count, even though it should have the same count as is_true
.
This is caused by the fact that MIR building specifically handles if !
by flipping the then/else arms, so the original condition expression (containing !
) does not have its span represented by any statement in MIR.