2023-04-11 13:31:08 +00:00
|
|
|
error: large future with a size of 16385 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:10:9
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | big_fut([0u8; 1024 * 16]).await;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Box::pin` on it: `Box::pin(big_fut([0u8; 1024 * 16]))`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::large-futures` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::large_futures)]`
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
error: large future with a size of 16386 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:14:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | f.await
|
|
|
|
| ^ help: consider `Box::pin` on it: `Box::pin(f)`
|
|
|
|
|
|
|
|
error: large future with a size of 16387 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:19:9
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | wait().await;
|
|
|
|
| ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
|
|
|
|
|
|
|
|
error: large future with a size of 16387 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:24:13
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | wait().await;
|
|
|
|
| ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`
|
|
|
|
|
|
|
|
error: large future with a size of 65540 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:32:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | foo().await;
|
|
|
|
| ^^^^^ help: consider `Box::pin` on it: `Box::pin(foo())`
|
|
|
|
|
|
|
|
error: large future with a size of 49159 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:34:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | calls_fut(fut).await;
|
|
|
|
| ^^^^^^^^^^^^^^ help: consider `Box::pin` on it: `Box::pin(calls_fut(fut))`
|
|
|
|
|
|
|
|
error: large future with a size of 65540 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:47:5
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / async {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2023-04-11 13:31:08 +00:00
|
|
|
LL | | let x = [0i32; 1024 * 16];
|
|
|
|
LL | | async {}.await;
|
|
|
|
LL | | println!("{:?}", x);
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
help: consider `Box::pin` on it
|
|
|
|
|
|
|
|
|
LL ~ Box::pin(async {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL +
|
2023-04-11 13:31:08 +00:00
|
|
|
LL + let x = [0i32; 1024 * 16];
|
|
|
|
LL + async {}.await;
|
|
|
|
LL + println!("{:?}", x);
|
|
|
|
LL + })
|
|
|
|
|
|
|
|
|
|
|
|
|
error: large future with a size of 65540 bytes
|
2024-04-11 13:15:34 +00:00
|
|
|
--> tests/ui/large_futures.rs:59:13
|
2023-04-11 13:31:08 +00:00
|
|
|
|
|
|
|
|
LL | / async {
|
|
|
|
LL | | let x = [0i32; 1024 * 16];
|
|
|
|
LL | | async {}.await;
|
|
|
|
LL | | println!("macro: {:?}", x);
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
...
|
|
|
|
LL | macro_!().await
|
|
|
|
| --------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `macro_` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
help: consider `Box::pin` on it
|
|
|
|
|
|
|
|
|
LL ~ Box::pin(async {
|
|
|
|
LL + let x = [0i32; 1024 * 16];
|
|
|
|
LL + async {}.await;
|
|
|
|
LL + println!("macro: {:?}", x);
|
|
|
|
LL + })
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|