Module rustc_mir_transform::coverage
source · Modules§
Structs§
- Function information extracted from HIR by the coverage instrumentor.
- Inserts
StatementKind::Coveragestatements that either instrument the binary with injected counters, via intrinsicllvm.instrprof.increment, and/or inject metadata used during codegen to construct the coverage map.
Functions§
- If
llvm-covsees a code 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. - Convert the Span into its file name, start line and column, and end line and column.