RS.CLIPPY.LARGE_STACK_ARRAYS
Allocating large arrays on stack may cause stack overflow
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: large_stack_arrays. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for local arrays that may be too large.
Why is this bad?
Large local arrays may cause stack overflow.
Example
let a = [0u32; 1_000_000];
Configuration
-
array-size-threshold: The maximum allowed size for arrays on the stack(default:
16384)