about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2025-08-30 10:38:23 +0200
committerMartin Nordholts <martin.nordholts@codetale.se>2025-08-30 11:09:29 +0200
commit2ce6154b32c50b3588e0c58b6f106647a8831de8 (patch)
treee71304defee521c856e5644d1e83e3b033bbaa16 /compiler/rustc_codegen_llvm/src/errors.rs
parentb53c72ffaaf10e17fef5deb063f2f3f3bc13c171 (diff)
downloadrust-2ce6154b32c50b3588e0c58b6f106647a8831de8.tar.gz
rust-2ce6154b32c50b3588e0c58b6f106647a8831de8.zip
compiler: Include span of too huge array with `-Cdebuginfo=2`
We have a few ui tests to ensure we emit an error if we encounter too
big arrays. Before this fix, compiling the tests with `-Cdebuginfo=2`
would not include the spans of the instantiation sites, because the
error is then emitted from a different code path that does not include
the span.

Propagate the span to the error also in the debuginfo case, so the tests
passes regardless of debuginfo level.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions