os-rust/compiler/rustc_span
Matthias Krüger 79bb336b9c
Rollup merge of #125921 - Zalathar:buckets, r=oli-obk
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.
2024-06-05 18:21:11 +02:00
..
src Rollup merge of #125921 - Zalathar:buckets, r=oli-obk 2024-06-05 18:21:11 +02:00
Cargo.toml Optimize Symbol::integer by utilizing itoa in-place formatting 2024-03-06 19:39:36 +01:00