InstrumentCoverage
requires information from HIR that might need to be available via MIR
#79625
Labels
A-code-coverage
Area: Source-based code coverage (-Cinstrument-coverage)
A-HIR
Area: The high-level intermediate representation (HIR)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Coverage requires the spans for the
FnSig
andhir::Body
.It also uses the
hir::Body
to compute a function hash, required by LLVM intrinsicinstrprof.coverage
.According to this code review comment:
#79109 (comment)
Consider improving MIR to provide the information needed, to avoid going back to HIR for it.
The text was updated successfully, but these errors were encountered: