|
1 | 1 | error: allocating a local array larger than 512000 bytes |
2 | | - --> $DIR/large_stack_arrays.rs:23:9 |
| 2 | + --> $DIR/large_stack_arrays.rs:29:14 |
| 3 | + | |
| 4 | +LL | let _x = [build(); 3]; |
| 5 | + | ^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = help: consider allocating on the heap with `vec![build(); 3].into_boxed_slice()` |
| 8 | + = note: `-D clippy::large-stack-arrays` implied by `-D warnings` |
| 9 | + |
| 10 | +error: allocating a local array larger than 512000 bytes |
| 11 | + --> $DIR/large_stack_arrays.rs:31:14 |
| 12 | + | |
| 13 | +LL | let _y = [build(), build(), build()]; |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()` |
| 17 | + |
| 18 | +error: allocating a local array larger than 512000 bytes |
| 19 | + --> $DIR/large_stack_arrays.rs:36:9 |
3 | 20 | | |
4 | 21 | LL | [0u32; 20_000_000], |
5 | 22 | | ^^^^^^^^^^^^^^^^^^ |
6 | 23 | | |
7 | 24 | = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()` |
8 | | - = note: `-D clippy::large-stack-arrays` implied by `-D warnings` |
9 | 25 |
|
10 | 26 | error: allocating a local array larger than 512000 bytes |
11 | | - --> $DIR/large_stack_arrays.rs:24:9 |
| 27 | + --> $DIR/large_stack_arrays.rs:37:9 |
12 | 28 | | |
13 | 29 | LL | [S { data: [0; 32] }; 5000], |
14 | 30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
15 | 31 | | |
16 | 32 | = help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()` |
17 | 33 |
|
18 | 34 | error: allocating a local array larger than 512000 bytes |
19 | | - --> $DIR/large_stack_arrays.rs:25:9 |
| 35 | + --> $DIR/large_stack_arrays.rs:38:9 |
20 | 36 | | |
21 | 37 | LL | [Some(""); 20_000_000], |
22 | 38 | | ^^^^^^^^^^^^^^^^^^^^^^ |
23 | 39 | | |
24 | 40 | = help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()` |
25 | 41 |
|
26 | 42 | error: allocating a local array larger than 512000 bytes |
27 | | - --> $DIR/large_stack_arrays.rs:26:9 |
| 43 | + --> $DIR/large_stack_arrays.rs:39:9 |
28 | 44 | | |
29 | 45 | LL | [E::T(0); 5000], |
30 | 46 | | ^^^^^^^^^^^^^^^ |
31 | 47 | | |
32 | 48 | = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()` |
33 | 49 |
|
34 | 50 | error: allocating a local array larger than 512000 bytes |
35 | | - --> $DIR/large_stack_arrays.rs:27:9 |
| 51 | + --> $DIR/large_stack_arrays.rs:40:9 |
36 | 52 | | |
37 | 53 | LL | [0u8; usize::MAX], |
38 | 54 | | ^^^^^^^^^^^^^^^^^ |
39 | 55 | | |
40 | 56 | = help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()` |
41 | 57 |
|
42 | | -error: aborting due to 5 previous errors |
| 58 | +error: aborting due to 7 previous errors |
43 | 59 |
|
0 commit comments