2019-11-12 22:22:53 +00:00
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:29:14
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | let _x = [build(); 3];
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![build(); 3].into_boxed_slice()`
|
|
|
|
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:32:14
|
2023-06-02 09:41:57 +00:00
|
|
|
|
|
|
|
|
LL | let _y = [build(), build(), build()];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`
|
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:38:9
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
|
LL | [0u32; 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:40:9
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
|
LL | [S { data: [0; 32] }; 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:42:9
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
|
LL | [Some(""); 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:44:9
|
2019-11-12 22:22:53 +00:00
|
|
|
|
|
|
|
|
LL | [E::T(0); 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
|
2019-11-12 22:22:53 +00:00
|
|
|
|
2023-02-28 12:45:19 +00:00
|
|
|
error: allocating a local array larger than 512000 bytes
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/large_stack_arrays.rs:46:9
|
2023-02-28 12:45:19 +00:00
|
|
|
|
|
|
|
|
LL | [0u8; usize::MAX],
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
|
|
|
|
|
2023-06-02 09:41:57 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2019-11-12 22:22:53 +00:00
|
|
|
|