1- error: allocating a local array larger than 512000 bytes
1+ error: allocating a local array larger than 16384 bytes
22 --> tests/ui/large_stack_arrays.rs:32:14
33 |
44LL | let _x = [build(); 3];
@@ -8,63 +8,63 @@ LL | let _x = [build(); 3];
88 = note: `-D clippy::large-stack-arrays` implied by `-D warnings`
99 = help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
1010
11- error: allocating a local array larger than 512000 bytes
11+ error: allocating a local array larger than 16384 bytes
1212 --> tests/ui/large_stack_arrays.rs:35:14
1313 |
1414LL | let _y = [build(), build(), build()];
1515 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1616 |
1717 = help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`
1818
19- error: allocating a local array larger than 512000 bytes
19+ error: allocating a local array larger than 16384 bytes
2020 --> tests/ui/large_stack_arrays.rs:41:9
2121 |
2222LL | [0u32; 20_000_000],
2323 | ^^^^^^^^^^^^^^^^^^
2424 |
2525 = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
2626
27- error: allocating a local array larger than 512000 bytes
27+ error: allocating a local array larger than 16384 bytes
2828 --> tests/ui/large_stack_arrays.rs:43:9
2929 |
3030LL | [S { data: [0; 32] }; 5000],
3131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232 |
3333 = help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
3434
35- error: allocating a local array larger than 512000 bytes
35+ error: allocating a local array larger than 16384 bytes
3636 --> tests/ui/large_stack_arrays.rs:45:9
3737 |
3838LL | [Some(""); 20_000_000],
3939 | ^^^^^^^^^^^^^^^^^^^^^^
4040 |
4141 = help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
4242
43- error: allocating a local array larger than 512000 bytes
43+ error: allocating a local array larger than 16384 bytes
4444 --> tests/ui/large_stack_arrays.rs:47:9
4545 |
4646LL | [E::T(0); 5000],
4747 | ^^^^^^^^^^^^^^^
4848 |
4949 = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
5050
51- error: allocating a local array larger than 512000 bytes
51+ error: allocating a local array larger than 16384 bytes
5252 --> tests/ui/large_stack_arrays.rs:49:9
5353 |
5454LL | [0u8; usize::MAX],
5555 | ^^^^^^^^^^^^^^^^^
5656 |
5757 = help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
5858
59- error: allocating a local array larger than 512000 bytes
59+ error: allocating a local array larger than 16384 bytes
6060 --> tests/ui/large_stack_arrays.rs:93:13
6161 |
6262LL | let y = [x, x, dummy!(x), x, x];
6363 | ^^^^^^^^^^^^^^^^^^^^^^^
6464 |
6565 = help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
6666
67- error: allocating a local array larger than 512000 bytes
67+ error: allocating a local array larger than 16384 bytes
6868 --> tests/ui/large_stack_arrays.rs:70:13
6969 |
7070LL | [$a, $b, $a, $b]
@@ -75,21 +75,21 @@ LL | let y = dummy![x => x];
7575 |
7676 = note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
7777
78- error: allocating a local array larger than 512000 bytes
78+ error: allocating a local array larger than 16384 bytes
7979 --> tests/ui/large_stack_arrays.rs:98:20
8080 |
8181LL | let y = dummy![[x, x, x, x, x]];
8282 | ^^^^^^^^^^^^^^^
8383 |
8484 = help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
8585
86- error: allocating a local array larger than 512000 bytes
86+ error: allocating a local array larger than 16384 bytes
8787 --> tests/ui/large_stack_arrays.rs:101:39
8888 |
8989LL | let y = proc_macros::make_it_big!([x; 1]);
9090 | ^^^^^^
9191
92- error: allocating a local array larger than 512000 bytes
92+ error: allocating a local array larger than 16384 bytes
9393 --> tests/ui/large_stack_arrays.rs:82:23
9494 |
9595LL | let _x_ = [$id; $n];
0 commit comments