11error: allocating a local array larger than 512000 bytes
2- --> tests/ui/large_stack_arrays.rs:29 :14
2+ --> tests/ui/large_stack_arrays.rs:32 :14
33 |
44LL | let _x = [build(); 3];
55 | ^^^^^^^^^^^^
@@ -9,71 +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:32 :14
12+ --> 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
1919error: allocating a local array larger than 512000 bytes
20- --> tests/ui/large_stack_arrays.rs:38 :9
20+ --> 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
2727error: allocating a local array larger than 512000 bytes
28- --> tests/ui/large_stack_arrays.rs:40 :9
28+ --> 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
3535error: allocating a local array larger than 512000 bytes
36- --> tests/ui/large_stack_arrays.rs:42 :9
36+ --> 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
4343error: allocating a local array larger than 512000 bytes
44- --> tests/ui/large_stack_arrays.rs:44 :9
44+ --> 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
5151error: allocating a local array larger than 512000 bytes
52- --> tests/ui/large_stack_arrays.rs:46 :9
52+ --> 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
5959error: allocating a local array larger than 512000 bytes
60- --> tests/ui/large_stack_arrays.rs:81:25
61- |
62- LL | let y = vec![dummy![[x, x, x, x, x]]];
63- | ^^^^^^^^^^^^^^^
64- |
65- = help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
66-
67- error: allocating a local array larger than 512000 bytes
68- --> tests/ui/large_stack_arrays.rs:84:13
60+ --> tests/ui/large_stack_arrays.rs:93:13
6961 |
7062LL | let y = [x, x, dummy!(x), x, x];
7163 | ^^^^^^^^^^^^^^^^^^^^^^^
7264 |
7365 = help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
7466
7567error: allocating a local array larger than 512000 bytes
76- --> tests/ui/large_stack_arrays.rs:67 :13
68+ --> tests/ui/large_stack_arrays.rs:70 :13
7769 |
7870LL | [$a, $b, $a, $b]
7971 | ^^^^^^^^^^^^^^^^
@@ -84,12 +76,29 @@ LL | let y = dummy![x => x];
8476 = note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
8577
8678error: allocating a local array larger than 512000 bytes
87- --> tests/ui/large_stack_arrays.rs:89 :20
79+ --> tests/ui/large_stack_arrays.rs:98 :20
8880 |
8981LL | let y = dummy![[x, x, x, x, x]];
9082 | ^^^^^^^^^^^^^^^
9183 |
9284 = help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
9385
94- error: aborting due to 11 previous errors
86+ error: allocating a local array larger than 512000 bytes
87+ --> tests/ui/large_stack_arrays.rs:101:39
88+ |
89+ LL | let y = proc_macros::make_it_big!([x; 1]);
90+ | ^^^^^^
91+
92+ error: allocating a local array larger than 512000 bytes
93+ --> tests/ui/large_stack_arrays.rs:82:23
94+ |
95+ LL | let _x_ = [$id; $n];
96+ | ^^^^^^^^^
97+ ...
98+ LL | let y = vec![create_then_move![x; 5]; 5];
99+ | ----------------------- in this macro invocation
100+ |
101+ = note: this error originates in the macro `create_then_move` (in Nightly builds, run with -Z macro-backtrace for more info)
102+
103+ error: aborting due to 12 previous errors
95104
0 commit comments