]>
Commit | Line | Data |
---|---|---|
353b0b11 | 1 | error: large future with a size of 16385 bytes |
fe692bf9 | 2 | --> $DIR/large_futures.rs:11:9 |
353b0b11 FG |
3 | | |
4 | LL | big_fut([0u8; 1024 * 16]).await; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Box::pin` on it: `Box::pin(big_fut([0u8; 1024 * 16]))` | |
6 | | | |
7 | = note: `-D clippy::large-futures` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::large_futures)]` |
353b0b11 FG |
9 | |
10 | error: large future with a size of 16386 bytes | |
781aab86 | 11 | --> $DIR/large_futures.rs:15:5 |
353b0b11 FG |
12 | | |
13 | LL | f.await | |
14 | | ^ help: consider `Box::pin` on it: `Box::pin(f)` | |
15 | ||
16 | error: large future with a size of 16387 bytes | |
781aab86 | 17 | --> $DIR/large_futures.rs:20:9 |
353b0b11 FG |
18 | | |
19 | LL | wait().await; | |
20 | | ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())` | |
21 | ||
22 | error: large future with a size of 16387 bytes | |
781aab86 | 23 | --> $DIR/large_futures.rs:25:13 |
353b0b11 FG |
24 | | |
25 | LL | wait().await; | |
26 | | ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())` | |
27 | ||
28 | error: large future with a size of 65540 bytes | |
781aab86 | 29 | --> $DIR/large_futures.rs:33:5 |
353b0b11 FG |
30 | | |
31 | LL | foo().await; | |
32 | | ^^^^^ help: consider `Box::pin` on it: `Box::pin(foo())` | |
33 | ||
34 | error: large future with a size of 49159 bytes | |
781aab86 | 35 | --> $DIR/large_futures.rs:35:5 |
353b0b11 FG |
36 | | |
37 | LL | calls_fut(fut).await; | |
38 | | ^^^^^^^^^^^^^^ help: consider `Box::pin` on it: `Box::pin(calls_fut(fut))` | |
39 | ||
40 | error: large future with a size of 65540 bytes | |
781aab86 | 41 | --> $DIR/large_futures.rs:48:5 |
353b0b11 FG |
42 | | |
43 | LL | / async { | |
781aab86 | 44 | LL | | |
353b0b11 FG |
45 | LL | | let x = [0i32; 1024 * 16]; |
46 | LL | | async {}.await; | |
47 | LL | | println!("{:?}", x); | |
48 | LL | | } | |
49 | | |_____^ | |
50 | | | |
51 | help: consider `Box::pin` on it | |
52 | | | |
53 | LL ~ Box::pin(async { | |
781aab86 | 54 | LL + |
353b0b11 FG |
55 | LL + let x = [0i32; 1024 * 16]; |
56 | LL + async {}.await; | |
57 | LL + println!("{:?}", x); | |
58 | LL + }) | |
59 | | | |
60 | ||
61 | error: large future with a size of 65540 bytes | |
781aab86 | 62 | --> $DIR/large_futures.rs:60:13 |
353b0b11 FG |
63 | | |
64 | LL | / async { | |
65 | LL | | let x = [0i32; 1024 * 16]; | |
66 | LL | | async {}.await; | |
67 | LL | | println!("macro: {:?}", x); | |
68 | LL | | } | |
69 | | |_____________^ | |
70 | ... | |
71 | LL | macro_!().await | |
72 | | --------- in this macro invocation | |
73 | | | |
74 | = note: this error originates in the macro `macro_` (in Nightly builds, run with -Z macro-backtrace for more info) | |
75 | help: consider `Box::pin` on it | |
76 | | | |
77 | LL ~ Box::pin(async { | |
78 | LL + let x = [0i32; 1024 * 16]; | |
79 | LL + async {}.await; | |
80 | LL + println!("macro: {:?}", x); | |
81 | LL + }) | |
82 | | | |
83 | ||
84 | error: aborting due to 8 previous errors | |
85 |