Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/limits/huge-array.no-debuginfo.stderr

9 lines
241 B
Plaintext
Raw Normal View History

TL note: current means target
2024-09-20 00:39:10 -07:00
error: values of the type `[[u8; 1518599999]; 1518600000]` are too big for the target architecture
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.
2025-08-30 10:38:23 +02:00
--> $DIR/huge-array.rs:9:9
Point to local place span on "type too big" error
2019-08-03 15:59:25 -07:00
|
LL | let s: [T; 1518600000] = [t; 1518600000];
| ^
Moved compile-fail tests to ui tests.
2018-08-08 14:28:26 +02:00
Show number in error message even for one error Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-21 15:44:16 +00:00
error: aborting due to 1 previous error
Moved compile-fail tests to ui tests.
2018-08-08 14:28:26 +02:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2741ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API