rust/tests/ui/intrinsics
Matthias Krüger 99e4127d85
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
2023-08-04 21:31:57 +02:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-intrinsic-monomorphization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-intrinsic-monomorphization.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select-backtrace-std.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select-backtrace-std.run.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
const-eval-select-backtrace.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select-backtrace.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
const-eval-select-bad.rs Tweak E0271 wording 2023-01-30 21:51:35 +00:00
const-eval-select-bad.stderr Tweak E0271 wording 2023-01-30 21:51:35 +00:00
const-eval-select-stability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select-stability.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select-x86_64.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-eval-select.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-alignment.rs Add QNX Neutrino support to libstd 2023-02-28 15:59:47 +01:00
intrinsic-assume.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-atomics-cc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-atomics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-nearby.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-raw_eq-const-bad.rs const validation: point at where we found a pointer but expected an integer 2023-08-02 18:51:50 +02:00
intrinsic-raw_eq-const-bad.stderr const validation: point at where we found a pointer but expected an integer 2023-08-02 18:51:50 +02:00
intrinsic-raw_eq-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsic-unreachable.rs Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
intrinsic-volatile.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsics-integer.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
intrinsics-math.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28575.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28575.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28575.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84297-reifying-copy.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-integer-atomic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-integer-atomic.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-uninitialized-zeroed.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
safe-intrinsic-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-intrinsic-mismatch.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unchecked_math_unsafe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unchecked_math_unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unchecked_math_unsafe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unchecked_math_unstable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unchecked_math_unstable.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00