about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-08-03 21:43:17 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-08-04 13:17:39 +0200
commited0dfed24f988cb2b52c819cd57c8eb65da400be (patch)
tree6ef1c4ae20455b74511aa0fb1f25f27c78c25dd9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentff27f9095f5edebdd03e885cb4df74ad32df30dc (diff)
downloadrust-ed0dfed24f988cb2b52c819cd57c8eb65da400be.tar.gz
rust-ed0dfed24f988cb2b52c819cd57c8eb65da400be.zip
Improve spans for indexing expressions
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions