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,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 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
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:92:13
69
61
|
70
62
LL | let y = [x, x, dummy!(x), x, x];
71
63
| ^^^^^^^^^^^^^^^^^^^^^^^
72
64
|
73
65
= help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
74
66
75
67
error: 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
77
69
|
78
70
LL | [$a, $b, $a, $b]
79
71
| ^^^^^^^^^^^^^^^^
@@ -84,12 +76,29 @@ LL | let y = dummy![x => x];
84
76
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
85
77
86
78
error: allocating a local array larger than 512000 bytes
87
- --> tests/ui/large_stack_arrays.rs:89 :20
79
+ --> tests/ui/large_stack_arrays.rs:97 :20
88
80
|
89
81
LL | let y = dummy![[x, x, x, x, x]];
90
82
| ^^^^^^^^^^^^^^^
91
83
|
92
84
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
93
85
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:100: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
95
104
0 commit comments