about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-04 21:31:57 +0200
committerGitHub <noreply@github.com>2023-08-04 21:31:57 +0200
commit878a87d5b789177525b283ac8a30a9b9383f4180 (patch)
treee82e25b50809fd2c823e10d33b20e75e048943c0 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1589759334b8278d5c8508f3a853b71246a2b548 (diff)
parented0dfed24f988cb2b52c819cd57c8eb65da400be (diff)
downloadrust-878a87d5b789177525b283ac8a30a9b9383f4180.tar.gz
rust-878a87d5b789177525b283ac8a30a9b9383f4180.zip
Rollup merge of #114434 - Nilstrieb:indexing-spans, r=est31
Improve spans for indexing expressions

fixes #114388

Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location.

This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR.

r? compiler-errors
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions