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-28 20:11:07 +0200
committerMartin Nordholts <martin.nordholts@codetale.se>2025-08-28 20:37:09 +0200
commit4edfeb2f60e4c9f871117965070946ff566810d0 (patch)
tree6ad47167556f7d1119d27bdc45447fbbef8f6bff /compiler/rustc_codegen_llvm/src/errors.rs
parent1f7dcc878d73c45cc40018aac6e5c767446df110 (diff)
downloadrust-4edfeb2f60e4c9f871117965070946ff566810d0.tar.gz
rust-4edfeb2f60e4c9f871117965070946ff566810d0.zip
compiler: Include span of too huge enum with -Cdebuginfo=2
We have a ui test to ensure we emit an error if we encounter too big
enums. Before this fix, compiling the test with `-Cdebuginfo=2` would
not include the span of the instantiation site, 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 test
passes regardless of debuginfo level.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions