11error: allocating a local array larger than 512000 bytes
2- --> tests/ui/large_stack_arrays.rs:32 :14
2+ --> tests/ui/large_stack_arrays.rs:33 :14
33 |
44LL | let _x = [build(); 3];
55 | ^^^^^^^^^^^^
@@ -9,63 +9,63 @@ LL | let _x = [build(); 3];
99 = help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
1010
1111error: allocating a local array larger than 512000 bytes
12- --> tests/ui/large_stack_arrays.rs:35 :14
12+ --> tests/ui/large_stack_arrays.rs:36 :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
1919error: allocating a local array larger than 512000 bytes
20- --> tests/ui/large_stack_arrays.rs:41 :9
20+ --> tests/ui/large_stack_arrays.rs:42 :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
2727error: allocating a local array larger than 512000 bytes
28- --> tests/ui/large_stack_arrays.rs:43 :9
28+ --> tests/ui/large_stack_arrays.rs:44 :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
3535error: allocating a local array larger than 512000 bytes
36- --> tests/ui/large_stack_arrays.rs:45 :9
36+ --> tests/ui/large_stack_arrays.rs:46 :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
4343error: allocating a local array larger than 512000 bytes
44- --> tests/ui/large_stack_arrays.rs:47 :9
44+ --> tests/ui/large_stack_arrays.rs:48 :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
5151error: allocating a local array larger than 512000 bytes
52- --> tests/ui/large_stack_arrays.rs:49 :9
52+ --> tests/ui/large_stack_arrays.rs:50 :9
5353 |
5454LL | [0u8; usize::MAX],
5555 | ^^^^^^^^^^^^^^^^^
5656 |
5757 = help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
5858
5959error: allocating a local array larger than 512000 bytes
60- --> tests/ui/large_stack_arrays.rs:93 :13
60+ --> tests/ui/large_stack_arrays.rs:94 :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
6767error: allocating a local array larger than 512000 bytes
68- --> tests/ui/large_stack_arrays.rs:70 :13
68+ --> tests/ui/large_stack_arrays.rs:71 :13
6969 |
7070LL | [$a, $b, $a, $b]
7171 | ^^^^^^^^^^^^^^^^
@@ -76,21 +76,21 @@ LL | let y = dummy![x => x];
7676 = note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
7777
7878error: allocating a local array larger than 512000 bytes
79- --> tests/ui/large_stack_arrays.rs:98 :20
79+ --> tests/ui/large_stack_arrays.rs:99 :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
8686error: allocating a local array larger than 512000 bytes
87- --> tests/ui/large_stack_arrays.rs:101 :39
87+ --> tests/ui/large_stack_arrays.rs:102 :39
8888 |
8989LL | let y = proc_macros::make_it_big!([x; 1]);
9090 | ^^^^^^
9191
9292error: allocating a local array larger than 512000 bytes
93- --> tests/ui/large_stack_arrays.rs:82 :23
93+ --> tests/ui/large_stack_arrays.rs:83 :23
9494 |
9595LL | let _x_ = [$id; $n];
9696 | ^^^^^^^^^
0 commit comments