1
1
error: 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
3
3
|
4
4
LL | let _x = [build(); 3];
5
5
| ^^^^^^^^^^^^
@@ -9,87 +9,104 @@ 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 512000 bytes
12
- --> tests/ui/large_stack_arrays.rs:32 :14
12
+ --> tests/ui/large_stack_arrays.rs:35 :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 512000 bytes
20
- --> tests/ui/large_stack_arrays.rs:38 :9
20
+ --> tests/ui/large_stack_arrays.rs:41 :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 512000 bytes
28
- --> tests/ui/large_stack_arrays.rs:40 :9
28
+ --> tests/ui/large_stack_arrays.rs:43 :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 512000 bytes
36
- --> tests/ui/large_stack_arrays.rs:42 :9
36
+ --> tests/ui/large_stack_arrays.rs:45 :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 512000 bytes
44
- --> tests/ui/large_stack_arrays.rs:44 :9
44
+ --> tests/ui/large_stack_arrays.rs:47 :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 512000 bytes
52
- --> tests/ui/large_stack_arrays.rs:46 :9
52
+ --> tests/ui/large_stack_arrays.rs:49 :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 512000 bytes
60
- --> tests/ui/large_stack_arrays.rs:81 :25
60
+ --> tests/ui/large_stack_arrays.rs:84 :25
61
61
|
62
62
LL | let y = vec![dummy![[x, x, x, x, x]]];
63
63
| ^^^^^^^^^^^^^^^
64
64
|
65
65
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
66
66
67
67
error: allocating a local array larger than 512000 bytes
68
- --> tests/ui/large_stack_arrays.rs:84 :13
68
+ --> tests/ui/large_stack_arrays.rs:87 :13
69
69
|
70
70
LL | let y = [x, x, dummy!(x), x, x];
71
71
| ^^^^^^^^^^^^^^^^^^^^^^^
72
72
|
73
73
= help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
74
74
75
75
error: allocating a local array larger than 512000 bytes
76
- --> tests/ui/large_stack_arrays.rs:67 :13
76
+ --> tests/ui/large_stack_arrays.rs:70 :13
77
77
|
78
78
LL | [$a, $b, $a, $b]
79
79
| ^^^^^^^^^^^^^^^^
80
80
...
81
81
LL | let y = dummy![x => x];
82
82
| -------------- in this macro invocation
83
83
|
84
+ = help: consider allocating on the heap with `vec![$a, $b, $a, $b].into_boxed_slice()`
84
85
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
85
86
86
87
error: allocating a local array larger than 512000 bytes
87
- --> tests/ui/large_stack_arrays.rs:89 :20
88
+ --> tests/ui/large_stack_arrays.rs:92 :20
88
89
|
89
90
LL | let y = dummy![[x, x, x, x, x]];
90
91
| ^^^^^^^^^^^^^^^
91
92
|
92
93
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
93
94
94
- error: aborting due to 11 previous errors
95
+ error: allocating a local array larger than 512000 bytes
96
+ --> tests/ui/large_stack_arrays.rs:95:39
97
+ |
98
+ LL | let y = proc_macros::make_it_big!([x; 1]);
99
+ | ^^^^^^
100
+ |
101
+ = help: consider allocating on the heap with `vec![x; 1].into_boxed_slice()`
102
+
103
+ error: allocating a local array larger than 512000 bytes
104
+ --> tests/ui/large_stack_arrays.rs:97:44
105
+ |
106
+ LL | let y = vec![proc_macros::make_it_big!([x; 10])];
107
+ | ^^^^^^^
108
+ |
109
+ = help: consider allocating on the heap with `vec![x; 10].into_boxed_slice()`
110
+
111
+ error: aborting due to 13 previous errors
95
112
0 commit comments