]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/large_futures.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / large_futures.stderr
CommitLineData
353b0b11 1error: large future with a size of 16385 bytes
fe692bf9 2 --> $DIR/large_futures.rs:11:9
353b0b11
FG
3 |
4LL | 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
10error: large future with a size of 16386 bytes
781aab86 11 --> $DIR/large_futures.rs:15:5
353b0b11
FG
12 |
13LL | f.await
14 | ^ help: consider `Box::pin` on it: `Box::pin(f)`
15
16error: large future with a size of 16387 bytes
781aab86 17 --> $DIR/large_futures.rs:20:9
353b0b11
FG
18 |
19LL | wait().await;
20 | ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
21
22error: large future with a size of 16387 bytes
781aab86 23 --> $DIR/large_futures.rs:25:13
353b0b11
FG
24 |
25LL | wait().await;
26 | ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
27
28error: large future with a size of 65540 bytes
781aab86 29 --> $DIR/large_futures.rs:33:5
353b0b11
FG
30 |
31LL | foo().await;
32 | ^^^^^ help: consider `Box::pin` on it: `Box::pin(foo())`
33
34error: large future with a size of 49159 bytes
781aab86 35 --> $DIR/large_futures.rs:35:5
353b0b11
FG
36 |
37LL | calls_fut(fut).await;
38 | ^^^^^^^^^^^^^^ help: consider `Box::pin` on it: `Box::pin(calls_fut(fut))`
39
40error: large future with a size of 65540 bytes
781aab86 41 --> $DIR/large_futures.rs:48:5
353b0b11
FG
42 |
43LL | / async {
781aab86 44LL | |
353b0b11
FG
45LL | | let x = [0i32; 1024 * 16];
46LL | | async {}.await;
47LL | | println!("{:?}", x);
48LL | | }
49 | |_____^
50 |
51help: consider `Box::pin` on it
52 |
53LL ~ Box::pin(async {
781aab86 54LL +
353b0b11
FG
55LL + let x = [0i32; 1024 * 16];
56LL + async {}.await;
57LL + println!("{:?}", x);
58LL + })
59 |
60
61error: large future with a size of 65540 bytes
781aab86 62 --> $DIR/large_futures.rs:60:13
353b0b11
FG
63 |
64LL | / async {
65LL | | let x = [0i32; 1024 * 16];
66LL | | async {}.await;
67LL | | println!("macro: {:?}", x);
68LL | | }
69 | |_____________^
70...
71LL | 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)
75help: consider `Box::pin` on it
76 |
77LL ~ Box::pin(async {
78LL + let x = [0i32; 1024 * 16];
79LL + async {}.await;
80LL + println!("macro: {:?}", x);
81LL + })
82 |
83
84error: aborting due to 8 previous errors
85