2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:38:14
|
2023-06-02 04:41:57 -05:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::large_stack_arrays)]`
|
2023-06-02 04:41:57 -05:00
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:41:14
|
2023-06-02 04:41:57 -05:00
|
|
|
|
|
|
|
|
LL | let _y = [build(), build(), build()];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![build(), build(), build()].into_boxed_slice()`
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:47:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [0u32; 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:49:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [S { data: [0; 32] }; 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:51:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [Some(""); 20_000_000],
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:53:9
|
2019-11-12 16:22:53 -06:00
|
|
|
|
|
|
|
|
LL | [E::T(0); 5000],
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
= help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
|
2019-11-12 16:22:53 -06:00
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:55:9
|
2023-02-28 06:45:19 -06:00
|
|
|
|
|
|
|
|
LL | [0u8; usize::MAX],
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![0u8; usize::MAX].into_boxed_slice()`
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:99:13
|
2024-04-10 02:53:36 -05:00
|
|
|
|
|
|
|
|
LL | let y = [x, x, dummy!(x), x, x];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![x, x, dummy!(x), x, x].into_boxed_slice()`
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:76:13
|
2024-04-10 02:53:36 -05:00
|
|
|
|
|
|
|
|
LL | [$a, $b, $a, $b]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | let y = dummy![x => x];
|
|
|
|
| -------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `dummy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:104:20
|
2024-04-10 02:53:36 -05:00
|
|
|
|
|
|
|
|
LL | let y = dummy![[x, x, x, x, x]];
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider allocating on the heap with `vec![x, x, x, x, x].into_boxed_slice()`
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:107:39
|
2024-04-17 05:10:50 -05:00
|
|
|
|
|
|
|
|
LL | let y = proc_macros::make_it_big!([x; 1]);
|
|
|
|
| ^^^^^^
|
|
|
|
|
2024-10-01 06:26:20 -05:00
|
|
|
error: allocating a local array larger than 16384 bytes
|
2024-10-10 16:01:46 -05:00
|
|
|
--> tests/ui/large_stack_arrays.rs:88:23
|
2024-04-17 05:10:50 -05:00
|
|
|
|
|
|
|
|
LL | let _x_ = [$id; $n];
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | let y = vec![create_then_move![x; 5]; 5];
|
|
|
|
| ----------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `create_then_move` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2019-11-12 16:22:53 -06:00
|
|
|
|