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
bad-intrinsic-monomorphization.rs
bad-intrinsic-monomorphization.stderr
const-eval-select-backtrace-std.rs
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
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
const-eval-select-stability.stderr
const-eval-select-x86_64.rs
const-eval-select.rs
intrinsic-alignment.rs Add QNX Neutrino support to libstd 2023-02-28 15:59:47 +01:00
intrinsic-assume.rs
intrinsic-atomics-cc.rs
intrinsic-atomics.rs
intrinsic-nearby.rs
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
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
intrinsics-integer.rs
intrinsics-math.rs
issue-28575.mir.stderr
issue-28575.rs
issue-28575.thir.stderr
issue-84297-reifying-copy.rs
non-integer-atomic.rs
non-integer-atomic.stderr
panic-uninitialized-zeroed.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
safe-intrinsic-mismatch.rs
safe-intrinsic-mismatch.stderr
unchecked_math_unsafe.mir.stderr
unchecked_math_unsafe.rs
unchecked_math_unsafe.thir.stderr
unchecked_math_unstable.rs
unchecked_math_unstable.stderr