1
- error: allocating a local array larger than 512000 bytes
1
+ error: allocating a local array larger than 16384 bytes
2
2
--> tests/ui/large_stack_arrays.rs:33:14
3
3
|
4
4
LL | let _x = [build(); 3];
@@ -8,63 +8,63 @@ LL | let _x = [build(); 3];
8
8
= note: `-D clippy::large-stack-arrays` implied by `-D warnings`
9
9
= help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
10
10
11
- error: allocating a local array larger than 512000 bytes
11
+ error: allocating a local array larger than 16384 bytes
12
12
--> tests/ui/large_stack_arrays.rs:36:14
13
13
|
14
14
LL | let _y = [build(), build(), build()];
15
15
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
16
|
17
17
= help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`
18
18
19
- error: allocating a local array larger than 512000 bytes
19
+ error: allocating a local array larger than 16384 bytes
20
20
--> tests/ui/large_stack_arrays.rs:42:9
21
21
|
22
22
LL | [0u32; 20_000_000],
23
23
| ^^^^^^^^^^^^^^^^^^
24
24
|
25
25
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
26
26
27
- error: allocating a local array larger than 512000 bytes
27
+ error: allocating a local array larger than 16384 bytes
28
28
--> tests/ui/large_stack_arrays.rs:44:9
29
29
|
30
30
LL | [S { data: [0; 32] }; 5000],
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
|
33
33
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
34
34
35
- error: allocating a local array larger than 512000 bytes
35
+ error: allocating a local array larger than 16384 bytes
36
36
--> tests/ui/large_stack_arrays.rs:46:9
37
37
|
38
38
LL | [Some(""); 20_000_000],
39
39
| ^^^^^^^^^^^^^^^^^^^^^^
40
40
|
41
41
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
42
42
43
- error: allocating a local array larger than 512000 bytes
43
+ error: allocating a local array larger than 16384 bytes
44
44
--> tests/ui/large_stack_arrays.rs:48:9
45
45
|
46
46
LL | [E::T(0); 5000],
47
47
| ^^^^^^^^^^^^^^^
48
48
|
49
49
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
50
50
51
- error: allocating a local array larger than 512000 bytes
51
+ error: allocating a local array larger than 16384 bytes
52
52
--> tests/ui/large_stack_arrays.rs:50:9
53
53
|
54
54
LL | [0u8; usize::MAX],
55
55
| ^^^^^^^^^^^^^^^^^
56
56
|
57
57
= help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
58
58
59
- error: allocating a local array larger than 512000 bytes
59
+ error: allocating a local array larger than 16384 bytes
60
60
--> tests/ui/large_stack_arrays.rs:94:13
61
61
|
62
62
LL | let y = [x, x, dummy!(x), x, x];
63
63
| ^^^^^^^^^^^^^^^^^^^^^^^
64
64
|
65
65
= help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
66
66
67
- error: allocating a local array larger than 512000 bytes
67
+ error: allocating a local array larger than 16384 bytes
68
68
--> tests/ui/large_stack_arrays.rs:71:13
69
69
|
70
70
LL | [$a, $b, $a, $b]
@@ -75,21 +75,21 @@ LL | let y = dummy![x => x];
75
75
|
76
76
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
77
77
78
- error: allocating a local array larger than 512000 bytes
78
+ error: allocating a local array larger than 16384 bytes
79
79
--> tests/ui/large_stack_arrays.rs:99:20
80
80
|
81
81
LL | let y = dummy![[x, x, x, x, x]];
82
82
| ^^^^^^^^^^^^^^^
83
83
|
84
84
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
85
85
86
- error: allocating a local array larger than 512000 bytes
86
+ error: allocating a local array larger than 16384 bytes
87
87
--> tests/ui/large_stack_arrays.rs:102:39
88
88
|
89
89
LL | let y = proc_macros::make_it_big!([x; 1]);
90
90
| ^^^^^^
91
91
92
- error: allocating a local array larger than 512000 bytes
92
+ error: allocating a local array larger than 16384 bytes
93
93
--> tests/ui/large_stack_arrays.rs:83:23
94
94
|
95
95
LL | let _x_ = [$id; $n];
0 commit comments