rustc_mir_transform::coverage

Function check_source_region

Source
fn check_source_region(source_region: SourceRegion) -> Option<SourceRegion>
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.