rust/compiler/rustc_mir_transform/src/coverage
Zalathar c479bc7f3b coverage: Attach an optional FunctionCoverageInfo to mir::Body
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.
2023-10-18 21:20:29 +11:00
..
spans coverage: Remove enum CoverageStatement 2023-10-10 13:39:23 +11:00
test_macros inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
counters.rs coverage: Store a graph reference in the graph traversal struct 2023-10-12 21:41:13 +11:00
graph.rs coverage: Simplify adding BCB successors to the traversal worklists 2023-10-12 22:37:58 +11:00
mod.rs coverage: Attach an optional FunctionCoverageInfo to mir::Body 2023-10-18 21:20:29 +11:00
query.rs coverage: Let each coverage statement hold a vector of code regions 2023-10-03 13:03:39 +11:00
spans.rs debug Span::ctxt() call detection 2023-10-16 19:50:29 -07:00
tests.rs coverage: Store a graph reference in the graph traversal struct 2023-10-12 21:41:13 +11:00