diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-19 18:52:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 18:52:10 +0100 |
| commit | 3fc6dfd5edcd7adaec0d971d050156fcd9267d7a (patch) | |
| tree | 370ce94df2f479528d6216a3f810e3421a3ebb17 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | dd60b6ca2787fe48a29f45d3b6b6d36bc97dce7e (diff) | |
| parent | d38f6880c029cd71a4ce1bc6be783741767d10c3 (diff) | |
| download | rust-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/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions
