2024-04-04 12:52:55 -05:00
|
|
|
error: this function may allocate 1001 bytes on the stack
|
|
|
|
--> tests/ui-toml/large_stack_frames/large_stack_frames.rs:12:4
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
2024-04-04 12:52:55 -05:00
|
|
|
LL | fn f2() {
|
|
|
|
| ^^
|
|
|
|
LL |
|
|
|
|
LL | let _x = create_array::<1001>();
|
|
|
|
| -- `_x` is the largest part, at 1001 bytes for type `[u8; 1001]`
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
2024-04-04 12:52:55 -05:00
|
|
|
= note: 1001 bytes is larger than Clippy's configured `stack-size-threshold` of 1000
|
|
|
|
= note: allocating large amounts of stack space can overflow the stack and cause the program to abort
|
2023-09-25 04:28:58 -05:00
|
|
|
= note: `-D clippy::large-stack-frames` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
|
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-09-25 04:28:58 -05:00
|
|
|
|