summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/large_stack_arrays.stderr
blob: 0dfb6732b02a581814f979645c67bad35eed6f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:29:14
   |
LL |     let _x = [build(); 3];
   |              ^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![build(); 3].into_boxed_slice()`
   = note: `-D clippy::large-stack-arrays` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:32:14
   |
LL |     let _y = [build(), build(), build()];
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:38:9
   |
LL |         [0u32; 20_000_000],
   |         ^^^^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:40:9
   |
LL |         [S { data: [0; 32] }; 5000],
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:42:9
   |
LL |         [Some(""); 20_000_000],
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:44:9
   |
LL |         [E::T(0); 5000],
   |         ^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`

error: allocating a local array larger than 512000 bytes
  --> $DIR/large_stack_arrays.rs:46:9
   |
LL |         [0u8; usize::MAX],
   |         ^^^^^^^^^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`

error: aborting due to 7 previous errors