-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve coverage results on certain derived traits that show two different counters #79626
Comments
It's possible this issue is fixed. Note that the sample code with coverage snippet in this issue's description came from: rust/src/test/run-make-fulldeps/coverage-reports/expected_show_coverage.partial_eq.txt Lines 4 to 5 in e9920ef
Which was the coverage result from this test:
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. |
Triage: We have now waited a short time (and more) so let's close. |
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: