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
array_const_index-0.stderr
array_const_index-1.rs
array_const_index-1.stderr
array_const_index-2.rs
array-break-length.rs
array-break-length.stderr
array-not-vector.rs
array-not-vector.stderr
bounds-check-no-overflow.rs
box-of-array-of-drop-1.rs
box-of-array-of-drop-2.rs
byte-literals.rs
cast-in-array-size.rs
check-static-mut-slices.rs
check-static-slice.rs
copy-out-of-array-1.rs
destructure-array-1.rs
dst-raw-slice.rs
empty-mutable-vec.rs
estr-slice.rs
evec-slice.rs
fixed_length_copy.rs
huge-largest-array.rs
infer_array_len.rs add test, bless tests 2023-07-17 22:00:43 +00:00
issue-15730.rs
issue-18425.rs
issue-69103-extra-binding-subslice.rs
issue-69103-extra-binding-subslice.stderr
ivec-pass-by-value.rs
match_arr_unknown_len.rs
match_arr_unknown_len.stderr
mut-vstore-expr.rs
mutability-inherits-through-fixed-length-vec.rs
mutable-alias-vec.rs
nested-vec-1.rs
nested-vec-2.rs
nested-vec-3.rs
new-style-fixed-length-vec.rs
rcvr-borrowed-to-slice.rs
repeat_empty_ok.rs
repeat_empty_ok.stderr
repeated-vector-syntax.rs
show-boxed-slice.rs
slice_binary_search.rs
slice_is_sorted_by_borrow.rs
slice-2.rs
slice-2.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
slice-mut-2.rs
slice-mut-2.stderr
slice-mut.rs
slice-mut.stderr
slice-of-zero-size-elements.rs
slice-panic-1.rs
slice-panic-2.rs
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
slice-to-vec-comparison.stderr
slice.rs
subslice-only-once-semantic-restriction.rs
subslice-only-once-semantic-restriction.stderr
subslice-patterns-const-eval-match.rs
subslice-patterns-const-eval.rs
suggest-array-length.fixed
suggest-array-length.rs
suggest-array-length.stderr
variance-vec-covariant.rs
vec-dst.rs
vec-fixed-length.rs
vec-late-init.rs
vec-macro-no-std.rs
vec-macro-rvalue-scope.rs
vec-macro-with-brackets.rs
vec-macro-with-comma-only.rs
vec-macro-with-comma-only.stderr
vec-macro-with-trailing-comma.rs
vec-matching-autoslice.rs
vec-matching-fixed.rs
vec-matching-fold.rs
vec-matching-legal-tail-element-borrow.rs
vec-matching.rs
vec-mut-iter-borrow.rs
vec-mut-iter-borrow.stderr
vec-overrun.rs
vec-repeat-with-cast.rs
vec-res-add.rs
vec-res-add.stderr
vec-tail-matching.rs
vector-cast-weirdness.rs
vector-cast-weirdness.stderr
vector-no-ann-2.rs
vector-no-ann.rs
vector-no-ann.stderr