Skip to main content

coverage_report

Function coverage_report 

Source
pub fn coverage_report(
    program: &MirProgram,
    emit_ctx: &MirEmitCtx<'_>,
) -> CoverageReport
Expand description

Walk every fn in program and report walker reach. For each fn, calls [emit_mir_expr] on the body and counts Some / None. Suitable for --explain-mir-coverage–style diagnostics; the codegen path itself is untouched.