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
const-eval-select-bad.rs
const-eval-select-bad.stderr
const-eval-select-stability.rs
const-eval-select-stability.stderr
const-eval-select-x86_64.rs
const-eval-select.rs
intrinsic-alignment.rs
intrinsic-assume.rs
intrinsic-atomics-cc.rs
intrinsic-atomics.rs
intrinsic-nearby.rs
intrinsic-raw_eq-const-bad.rs
intrinsic-raw_eq-const-bad.stderr
intrinsic-raw_eq-const.rs
intrinsic-unreachable.rs
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
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