mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 23:42:56 +00:00
![]() coverage: Carve out hole spans in a separate early pass When extracting spans from MIR for use in coverage instrumentation, we sometimes need to identify *hole spans* (currently just closures), and carve up the other spans so that they don't overlap with holes. This PR simplifies the main coverage-span-refiner by extracting the hole-carving process into a separate early pass. That pass produces a series of independent buckets, and we run the span-refiner on each bucket separately. There is almost no difference in the resulting mappings, other than in some edge cases involving macros. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |