This allows coverage information to be attached to the function as a whole when appropriate, instead of being smuggled through coverage statements in the function's basic blocks. As an example, this patch moves the `function_source_hash` value out of individual `CoverageKind::Counter` statements and into the per-function info. When synthesizing unused functions for coverage purposes, the absence of this info is taken to indicate that a function was not eligible for coverage and should not be synthesized. |
||
|---|---|---|
| .. | ||
| spans | ||
| test_macros | ||
| counters.rs | ||
| graph.rs | ||
| mod.rs | ||
| query.rs | ||
| spans.rs | ||
| tests.rs | ||