rust/tests/ui/array-slice-vec
Nilstrieb 5706be1854 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.
2023-08-04 13:17:39 +02:00
..
array_const_index-0.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_const_index-0.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_const_index-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_const_index-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_const_index-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-break-length.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-break-length.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-not-vector.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
array-not-vector.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
bounds-check-no-overflow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
box-of-array-of-drop-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
box-of-array-of-drop-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
byte-literals.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cast-in-array-size.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
check-static-mut-slices.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
check-static-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
copy-out-of-array-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
destructure-array-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-raw-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
empty-mutable-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
estr-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
evec-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fixed_length_copy.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
huge-largest-array.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
infer_array_len.rs add test, bless tests 2023-07-17 22:00:43 +00:00
issue-15730.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18425.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69103-extra-binding-subslice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69103-extra-binding-subslice.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ivec-pass-by-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match_arr_unknown_len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match_arr_unknown_len.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-vstore-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutability-inherits-through-fixed-length-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable-alias-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-vec-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-vec-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-vec-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
new-style-fixed-length-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rcvr-borrowed-to-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat_empty_ok.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat_empty_ok.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
repeated-vector-syntax.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
show-boxed-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_binary_search.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_is_sorted_by_borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-2.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
slice-mut-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-mut-2.stderr tweak "make mut" spans when assigning to locals 2023-05-05 22:40:04 +12:00
slice-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-mut.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-of-zero-size-elements.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-panic-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-panic-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-pat-type-mismatches.rs address review 2023-07-17 22:06:32 +00:00
slice-pat-type-mismatches.stderr address review 2023-07-17 22:06:32 +00:00
slice-to-vec-comparison.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-to-vec-comparison.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-only-once-semantic-restriction.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-only-once-semantic-restriction.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-patterns-const-eval-match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-patterns-const-eval.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-array-length.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-array-length.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-array-length.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
variance-vec-covariant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-dst.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-fixed-length.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-late-init.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-no-std.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-rvalue-scope.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-with-brackets.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-with-comma-only.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-with-comma-only.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-macro-with-trailing-comma.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-matching-autoslice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-matching-fixed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-matching-fold.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-matching-legal-tail-element-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-matching.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-mut-iter-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-mut-iter-borrow.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
vec-overrun.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-repeat-with-cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-res-add.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-res-add.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-tail-matching.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-cast-weirdness.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-cast-weirdness.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-no-ann-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-no-ann.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-no-ann.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00