about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-08 13:24:50 +0000
committerbors <bors@rust-lang.org>2024-07-08 13:24:50 +0000
commitcfd7cf5a0e497c238dcf9947e2eeec01837beeb4 (patch)
tree776950273fb7d4fd210f508377149c477800cb66 /compiler/rustc_trait_selection/src/lib.rs
parent59a4f02f836f74c4cf08f47d76c9f6069a2f8276 (diff)
parent63c04f05e60ce27311fc1b874907188616beb558 (diff)
downloadrust-cfd7cf5a0e497c238dcf9947e2eeec01837beeb4.tar.gz
rust-cfd7cf5a0e497c238dcf9947e2eeec01837beeb4.zip
Auto merge of #127199 - Zalathar:hir-holes, r=oli-obk
coverage: Extract hole spans from HIR instead of MIR

This makes it possible to treat more kinds of nested item/code as holes, instead of being restricted to closures.

(It also potentially opens up the possibility of using HIR holes to modify branch or MC/DC spans, though we currently don't actually do this.)

Thus, this new implementation treats the following as holes:
- Closures (as before, including `async` and coroutines)
- All nested items
- Inline `const` (because why not)

This gives more accurate coverage reports, because lines occupied by holes don't show the execution count from the enclosing function.

Fixes #126626.
Diffstat (limited to 'compiler/rustc_trait_selection/src/lib.rs')
0 files changed, 0 insertions, 0 deletions