about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-06 14:01:21 +0000
committerbors <bors@rust-lang.org>2023-12-06 14:01:21 +0000
commit6316ac83d770fb86dc581751b24cddf622376899 (patch)
tree7882bef8d7cd80f2466ed0557c7d8d61947d8e18 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentdd6126ef5625299870f5fec4d14a605acddc81eb (diff)
parent242bff3cda7bf1e4306d3ba865332e3cb8e4d78d (diff)
downloadrust-6316ac83d770fb86dc581751b24cddf622376899.tar.gz
rust-6316ac83d770fb86dc581751b24cddf622376899.zip
Auto merge of #118595 - Zalathar:visible-macro, r=TaKO8Ki
coverage: Be more strict about what counts as a "visible macro"

This is a follow-up to the workaround in #117827, and I believe it now properly fixes #117788.

The old code treats a span as having a “visible macro” if it is part of a macro-expansion, and its parent callsite's context is the same as the body span's context. But if the body span is itself part of an expansion, the macro in question might not actually be visible from the body span. That results in the macro name's length being meaningless as a span offset.

We now only consider spans whose parent callsite is the same as the source callsite, i.e. the parent has no parent.

---

I've also included some related cleanup for the code added by #117827. That code was more complicated than normal, because I wanted it to be easy to backport to stable/beta.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions