about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-19 18:52:10 +0100
committerGitHub <noreply@github.com>2025-02-19 18:52:10 +0100
commit3fc6dfd5edcd7adaec0d971d050156fcd9267d7a (patch)
tree370ce94df2f479528d6216a3f810e3421a3ebb17 /compiler/rustc_codegen_llvm/src/builder.rs
parentdd60b6ca2787fe48a29f45d3b6b6d36bc97dce7e (diff)
parentd38f6880c029cd71a4ce1bc6be783741767d10c3 (diff)
downloadrust-3fc6dfd5edcd7adaec0d971d050156fcd9267d7a.tar.gz
rust-3fc6dfd5edcd7adaec0d971d050156fcd9267d7a.zip
Rollup merge of #137251 - Zalathar:holes-visitor, r=jieyouxu
coverage: Get hole spans from nested items without fully visiting them

This is a small simplification to the code that collects the spans of nested items within a function, so that those spans can be treated as “holes” to be avoided by the current function's coverage mappings.

The old code was using `nested_filter::All` to ensure that the visitor would see nested items. But we don't need the actual items themselves; we just need their spans, which we can obtain via a custom implementation of `visit_nested_item`.

This avoids the more expansive queries required by `nested_filter::All`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions