about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.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
commit99e4127d8506656b0a414728a809e64e3414886c (patch)
tree5a1a5c55fb6c909bf535aee97e66429baa640368 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent4669905ee65caef4fa339885fd58944ed607c361 (diff)
parent5706be1854db74d0aafcc4658423884689f139e9 (diff)
downloadrust-99e4127d8506656b0a414728a809e64e3414886c.tar.gz
rust-99e4127d8506656b0a414728a809e64e3414886c.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/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions