about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-05 18:21:11 +0200
committerGitHub <noreply@github.com>2024-06-05 18:21:11 +0200
commit79bb336b9cbbb1a15226e29320d329ead0c8b385 (patch)
treee1ede6a1d7baaeb6ac378e35b7276bb35331d519 /compiler/rustc_trait_selection/src/errors.rs
parentebc66fd04d3cd38b0330546f23c6d686c6581916 (diff)
parentc57a1d1baa0a2fc4328f81be66dc7b518c1953bb (diff)
downloadrust-79bb336b9cbbb1a15226e29320d329ead0c8b385.tar.gz
rust-79bb336b9cbbb1a15226e29320d329ead0c8b385.zip
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.
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions