mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

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.
9 lines
204 B
Plaintext
9 lines
204 B
Plaintext
error: values of the type `Option<TYPE>` are too big for the target architecture
|
|
--> $DIR/huge-enum.rs:17:9
|
|
|
|
|
LL | let big: BIG = None;
|
|
| ^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|