1
1
error: allocating a local array larger than 16384 bytes
2
- --> tests/ui/large_stack_arrays.rs:33 :14
2
+ --> tests/ui/large_stack_arrays.rs:38 :14
3
3
|
4
4
LL | let _x = [build(); 3];
5
5
| ^^^^^^^^^^^^
@@ -9,63 +9,63 @@ LL | let _x = [build(); 3];
9
9
= help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
10
10
11
11
error: allocating a local array larger than 16384 bytes
12
- --> tests/ui/large_stack_arrays.rs:36 :14
12
+ --> tests/ui/large_stack_arrays.rs:41 :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
19
error: allocating a local array larger than 16384 bytes
20
- --> tests/ui/large_stack_arrays.rs:42 :9
20
+ --> tests/ui/large_stack_arrays.rs:47 :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
27
error: allocating a local array larger than 16384 bytes
28
- --> tests/ui/large_stack_arrays.rs:44 :9
28
+ --> tests/ui/large_stack_arrays.rs:49 :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
35
error: allocating a local array larger than 16384 bytes
36
- --> tests/ui/large_stack_arrays.rs:46 :9
36
+ --> tests/ui/large_stack_arrays.rs:51 :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
43
error: allocating a local array larger than 16384 bytes
44
- --> tests/ui/large_stack_arrays.rs:48 :9
44
+ --> tests/ui/large_stack_arrays.rs:53 :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
51
error: allocating a local array larger than 16384 bytes
52
- --> tests/ui/large_stack_arrays.rs:50 :9
52
+ --> tests/ui/large_stack_arrays.rs:55 :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
59
error: allocating a local array larger than 16384 bytes
60
- --> tests/ui/large_stack_arrays.rs:94 :13
60
+ --> tests/ui/large_stack_arrays.rs:99 :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
67
error: allocating a local array larger than 16384 bytes
68
- --> tests/ui/large_stack_arrays.rs:71 :13
68
+ --> tests/ui/large_stack_arrays.rs:76 :13
69
69
|
70
70
LL | [$a, $b, $a, $b]
71
71
| ^^^^^^^^^^^^^^^^
@@ -76,21 +76,21 @@ LL | let y = dummy![x => x];
76
76
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
77
77
78
78
error: allocating a local array larger than 16384 bytes
79
- --> tests/ui/large_stack_arrays.rs:99 :20
79
+ --> tests/ui/large_stack_arrays.rs:104 :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
86
error: allocating a local array larger than 16384 bytes
87
- --> tests/ui/large_stack_arrays.rs:102 :39
87
+ --> tests/ui/large_stack_arrays.rs:107 :39
88
88
|
89
89
LL | let y = proc_macros::make_it_big!([x; 1]);
90
90
| ^^^^^^
91
91
92
92
error: allocating a local array larger than 16384 bytes
93
- --> tests/ui/large_stack_arrays.rs:83 :23
93
+ --> tests/ui/large_stack_arrays.rs:88 :23
94
94
|
95
95
LL | let _x_ = [$id; $n];
96
96
| ^^^^^^^^^
0 commit comments