about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-attribute.stderr
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
commitaca22c73fde0a290c8b682e465a0ad28f0690be7 (patch)
tree68440f15b67ebafe6201eb591fdd3f7eb2d97c1e /tests/ui/patchable-function-entry/patchable-function-entry-attribute.stderr
parent14101ed5a5f9033703ad8c4bdbb9a2097f441650 (diff)
downloadrust-aca22c73fde0a290c8b682e465a0ad28f0690be7.tar.gz
rust-aca22c73fde0a290c8b682e465a0ad28f0690be7.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 'tests/ui/patchable-function-entry/patchable-function-entry-attribute.stderr')
0 files changed, 0 insertions, 0 deletions