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
Related to MIR pass InstrumentCoverage (tracking issue #79121)
The derived traits get coverage, which is great, but some of the traits appear to get two coverage execution counts at different positions:
4| 2|#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
^0 ^0 ^0 ^0 ^1 ^0 ^0^0
```text
`PartialEq`, `PartialOrd`, and `Ord` (and possibly `Eq`, if the trait name was longer than 2
characters) have counts at their first and last characters.
Why is this? Why does `PartialOrd` have two values (1 and 0)? This must mean we are checking distinct coverages, so maybe we don't want to eliminate one of them. Should we merge them? If merged, do we lose some information?
The text was updated successfully, but these errors were encountered:
// This test confirms an earlier problem was resolved, supporting the MIR graph generated by the
The coverage tests were temporarily disabled on or around Feb 4, 2021 by PR #81688.
At some point between that PR and the failed CI merge attempt on Feb 10 (#81983 (comment)), some change was made to the Rust compiler that resolved the inconsistent coverage counts described in this issue.
(I assume this was a side-effect of another change made for unrelated reasons.)
I learned of the problem when I tried to merge PR #81734, which reactivated the coverage tests.
Since I don't know what PR/commit introduced this change in behavior, I'm not certain if that change fixes all similar issues where derived traits were showing two different counts. Unless someone finds other examples of that problem, I think we can wait for a short period of time, and then close this issue if no other examples are found.
Related to MIR pass
InstrumentCoverage
(tracking issue #79121)The derived traits get coverage, which is great, but some of the traits appear to get two coverage execution counts at different positions:
The text was updated successfully, but these errors were encountered: