-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
LLVM Coverage and "assert_eq!" #82853
Copy link
Copy link
Closed
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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: