1
1
error: 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
3
3
|
4
4
LL | fn many_small_arrays() {
5
5
| ^^^^^^^^^^^^^^^^^
@@ -13,23 +13,23 @@ LL | let x5 = [0u8; 500_000];
13
13
= help: to override `-D warnings` add `#[allow(clippy::large_stack_frames)]`
14
14
15
15
error: 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
17
17
|
18
18
LL | fn large_return_value() -> ArrayDefault<1_000_000> {
19
19
| ^^^^^^^^^^^^^^^^^^ ----------------------- this is the largest part, at 1000000 bytes for type `ArrayDefault<1000000>`
20
20
|
21
21
= note: 1000000 bytes is larger than Clippy's configured `stack-size-threshold` of 512000
22
22
23
23
error: 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
25
25
|
26
26
LL | fn large_fn_arg(x: ArrayDefault<1_000_000>) {
27
27
| ^^^^^^^^^^^^ - `x` is the largest part, at 1000000 bytes for type `ArrayDefault<1000000>`
28
28
|
29
29
= note: 100$PTR bytes is larger than Clippy's configured `stack-size-threshold` of 512000
30
30
31
31
error: 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
33
33
|
34
34
LL | let f = || black_box(&[0u8; 1_000_000]);
35
35
| ^^^^^^^^^^^^^^----------------^
0 commit comments