diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2025-08-28 20:11:07 +0200 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2025-08-28 20:37:09 +0200 |
| commit | 4edfeb2f60e4c9f871117965070946ff566810d0 (patch) | |
| tree | 6ad47167556f7d1119d27bdc45447fbbef8f6bff /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 1f7dcc878d73c45cc40018aac6e5c767446df110 (diff) | |
| download | rust-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
