fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.0 KiB60 linesraw
1error: allocating a local array larger than 512000 bytes
2  --> $DIR/large_stack_arrays.rs:29:14
3   |
4LL |     let _x = [build(); 3];
5   |              ^^^^^^^^^^^^
6   |
7   = help: consider allocating on the heap with `vec![build(); 3].into_boxed_slice()`
8   = note: `-D clippy::large-stack-arrays` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
10
11error: allocating a local array larger than 512000 bytes
12  --> $DIR/large_stack_arrays.rs:32:14
13   |
14LL |     let _y = [build(), build(), build()];
15   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
16   |
17   = help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`
18
19error: allocating a local array larger than 512000 bytes
20  --> $DIR/large_stack_arrays.rs:38:9
21   |
22LL |         [0u32; 20_000_000],
23   |         ^^^^^^^^^^^^^^^^^^
24   |
25   = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
26
27error: allocating a local array larger than 512000 bytes
28  --> $DIR/large_stack_arrays.rs:40:9
29   |
30LL |         [S { data: [0; 32] }; 5000],
31   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
32   |
33   = help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
34
35error: allocating a local array larger than 512000 bytes
36  --> $DIR/large_stack_arrays.rs:42:9
37   |
38LL |         [Some(""); 20_000_000],
39   |         ^^^^^^^^^^^^^^^^^^^^^^
40   |
41   = help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
42
43error: allocating a local array larger than 512000 bytes
44  --> $DIR/large_stack_arrays.rs:44:9
45   |
46LL |         [E::T(0); 5000],
47   |         ^^^^^^^^^^^^^^^
48   |
49   = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
50
51error: allocating a local array larger than 512000 bytes
52  --> $DIR/large_stack_arrays.rs:46:9
53   |
54LL |         [0u8; usize::MAX],
55   |         ^^^^^^^^^^^^^^^^^
56   |
57   = help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
58
59error: aborting due to 7 previous errors
60