mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00

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.
9 lines
242 B
Plaintext
9 lines
242 B
Plaintext
error: values of the type `[u8; 2305843011361177600]` are too big for the target architecture
|
|
--> $DIR/huge-array-simple-64.rs:12:9
|
|
|
|
|
LL | let _fat: [u8; (1<<61)+(1<<31)] =
|
|
| ^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|