about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.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
commite83a7cadd23c5b5530f7c7f53ef5004c9fd8fe79 (patch)
tree68440f15b67ebafe6201eb591fdd3f7eb2d97c1e /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentd165d4ad3840ae14ddd3f62597b5a2a01adc1e27 (diff)
downloadrust-e83a7cadd23c5b5530f7c7f53ef5004c9fd8fe79.tar.gz
rust-e83a7cadd23c5b5530f7c7f53ef5004c9fd8fe79.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/Linker.cpp')
0 files changed, 0 insertions, 0 deletions