fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.4 KiB85 linesraw
1error: large future with a size of 16385 bytes
2  --> $DIR/large_futures.rs:11:9
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`
8   = help: to override `-D warnings` add `#[allow(clippy::large_futures)]`
9
10error: large future with a size of 16386 bytes
11  --> $DIR/large_futures.rs:15:5
12   |
13LL |     f.await
14   |     ^ help: consider `Box::pin` on it: `Box::pin(f)`
15
16error: large future with a size of 16387 bytes
17  --> $DIR/large_futures.rs:20:9
18   |
19LL |         wait().await;
20   |         ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
21
22error: large future with a size of 16387 bytes
23  --> $DIR/large_futures.rs:25:13
24   |
25LL |             wait().await;
26   |             ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
27
28error: large future with a size of 65540 bytes
29  --> $DIR/large_futures.rs:33:5
30   |
31LL |     foo().await;
32   |     ^^^^^ help: consider `Box::pin` on it: `Box::pin(foo())`
33
34error: large future with a size of 49159 bytes
35  --> $DIR/large_futures.rs:35:5
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
41  --> $DIR/large_futures.rs:48:5
42   |
43LL | /     async {
44LL | |
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 {
54LL +
55LL +         let x = [0i32; 1024 * 16];
56LL +         async {}.await;
57LL +         println!("{:?}", x);
58LL +     })
59   |
60
61error: large future with a size of 65540 bytes
62  --> $DIR/large_futures.rs:60:13
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