You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
code coverage reporting for let-else interacts poorly with rustfmt #143149
In my test suite, the positive if case is covered, but the else is never covered.
I expected to see this happen:
Code coverage tools should clearly report that let (m_original, []) = slice::as_chunks::<_, 8>(m.limbs()) is fully covered and should clearly report that the entire else case is not covered.
Instead, this happened:
Code coverage reports that let (m_original, []) = slice::as_chunks::<_, 8>(m.limbs()) else { is partially covered and that the rest of the else is uncovered:
This is really unfortunate as it leads to confusion about whether part of the positive case is uncovered.
Activity