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,71 +9,71 @@ 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
| ^^^^^^^^^^^^^^^^
@@ -84,12 +84,20 @@ LL | let y = dummy![x => x];
84
84
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
85
85
86
86
error: allocating a local array larger than 512000 bytes
87
- --> tests/ui/large_stack_arrays.rs:89 :20
87
+ --> tests/ui/large_stack_arrays.rs:92 :20
88
88
|
89
89
LL | let y = dummy![[x, x, x, x, x]];
90
90
| ^^^^^^^^^^^^^^^
91
91
|
92
92
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
93
93
94
- error: aborting due to 11 previous errors
94
+ error: allocating a local array larger than 512000 bytes
95
+ --> tests/ui/large_stack_arrays.rs:94:39
96
+ |
97
+ LL | let y = proc_macros::make_it_big!([x; 1]);
98
+ | ^^^^^^
99
+ |
100
+ = help: consider allocating on the heap with `vec![x; 1].into_boxed_slice()`
101
+
102
+ error: aborting due to 12 previous errors
95
103
0 commit comments