11error: this function may allocate 250$PTR bytes on the stack
2- --> tests/ui/large_stack_frames.rs:27 :4
2+ --> tests/ui/large_stack_frames.rs:21 :4
33 |
44LL | fn many_small_arrays() {
55 | ^^^^^^^^^^^^^^^^^
@@ -13,23 +13,23 @@ LL | let x5 = [0u8; 500_000];
1313 = help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
1414
1515error: this function may allocate 1000000 bytes on the stack
16- --> tests/ui/large_stack_frames.rs:38 :4
16+ --> tests/ui/large_stack_frames.rs:32 :4
1717 |
1818LL | fn large_return_value() -> ArrayDefault<1_000_000> {
1919 | ^^^^^^^^^^^^^^^^^^ ----------------------- this is the largest part, at 1000000 bytes for type `ArrayDefault<1000000>`
2020 |
2121 = note: 1000000 bytes is larger than Clippy's configured `stack-size-threshold` of 512000
2222
2323error: this function may allocate 100$PTR bytes on the stack
24- --> tests/ui/large_stack_frames.rs:44 :4
24+ --> tests/ui/large_stack_frames.rs:38 :4
2525 |
2626LL | fn large_fn_arg(x: ArrayDefault<1_000_000>) {
2727 | ^^^^^^^^^^^^ - `x` is the largest part, at 1000000 bytes for type `ArrayDefault<1000000>`
2828 |
2929 = note: 100$PTR bytes is larger than Clippy's configured `stack-size-threshold` of 512000
3030
3131error: this function may allocate 100$PTR bytes on the stack
32- --> tests/ui/large_stack_frames.rs:51 :13
32+ --> tests/ui/large_stack_frames.rs:45 :13
3333 |
3434LL | let f = || black_box(&[0u8; 1_000_000]);
3535 | ^^^^^^^^^^^^^^----------------^
0 commit comments