Code coverage (-Zinstrument-coverage) showing #[derive(Eq)] as a missed region, even though Eq has no functions #83601
Labels
A-code-coverage
Area: Source-based code coverage (-Cinstrument-coverage)
C-bug
Category: This is a bug.
I tried this code:
Running these commands to get the code coverage report:
$ env RUSTFLAGS="-Zinstrument-coverage" CARGO_INCREMENTAL=0 cargo run $ cargo profdata -- merge default.profraw -o default.profdata $ cargo cov -- show --use-color --instr-profile=calypso.profdata --object target/debug/codecov-testing --show-instantiations --show-line-counts-or-regions --Xdemangler=rustfilt
This provides this report:
I expected to see this happen:
Eq
is not marked as a missed regionInstead, this happened: Eq is marked as a missed region (the
^0
). I'm guessing this is because of the internalassert_receiver_is_total_eq
function onEq
.Meta
rustc --version --verbose
:Backtrace not applicable.
The text was updated successfully, but these errors were encountered: