-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
LLVM Coverage and "assert_eq!" #82853
Comments
I've been eagerly typing |
... hits the nightly channel along with rls and rustfmt, anyway...
|
|
Nice. Didn't know about that. Seems like
But it does seem like all the |
Awesome (mostly 😉 ) Please feel free to update the issue title for the specific issue with Thanks so much for the feedback! |
Ticket for new coverage issue: #84892. This issue (i.e. |
When using
-Zinstrument-coverage
, my coverage reports often (but not always), report things like:I.e.: the
assert_eq!
is marked with no coverage. (Now, it's a whole other can of worms for why my testcases themselves should be included in coverage, but I think that's a question for the llvm people, not the rust people.)Naturally, my expectation is that all the lines of this non-branching testcase have the same execution counts.
I've changed things around, on occasion, to
assert!(a == b)
instead, and that seems to resolve things, but I'd really rather not have to go to that step.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: