rustc_codegen_llvm::coverageinfo::mapgen::spans

Function check_coverage_span

Source
fn check_coverage_span(cov_span: CoverageSpan) -> Option<CoverageSpan>
Expand description

If llvm-cov sees a source region that is improperly ordered (end < start), it will immediately exit with a fatal error. To prevent that from happening, discard regions that are improperly ordered, or might be interpreted in a way that makes them improperly ordered.