about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-01-10 12:33:19 +0000
committerGitHub <noreply@github.com>2025-01-10 12:33:19 +0000
commit716a3a477866c3b7070b3f4d0dc4677bcadb4d1e (patch)
treeb281830731bdfc81419fae9ad7fee33fe0789742 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent5c2601af15c6cba486c5d00a28dc31d8915d26eb (diff)
parentd8301d762f423b2a08f67319a4178dc2c45bf934 (diff)
downloadrust-716a3a477866c3b7070b3f4d0dc4677bcadb4d1e.tar.gz
rust-716a3a477866c3b7070b3f4d0dc4677bcadb4d1e.zip
Do not intersect spans coming from different contexts (#13942)
The code should not attempt to obtain a snippet by capping the function
signature span with its identifier span without checking that they are
in the same context.

This is the only instance I could identify where placeholders were used
instead of the real snippet when running the CI lintcheck. Moreover, the
placeholders were not even used, as they snippet was obtained
prematurely.

Found in the context of #13941

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions