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