summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/large_futures.stderr
blob: 5bcf054884e41af2fcf0dfd0bfbde88fdb2443f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
error: large future with a size of 16385 bytes
  --> $DIR/large_futures.rs:11:9
   |
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`

error: large future with a size of 16386 bytes
  --> $DIR/large_futures.rs:13:5
   |
LL |     f.await
   |     ^ help: consider `Box::pin` on it: `Box::pin(f)`

error: large future with a size of 16387 bytes
  --> $DIR/large_futures.rs:17:9
   |
LL |         wait().await;
   |         ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`

error: large future with a size of 16387 bytes
  --> $DIR/large_futures.rs:21:13
   |
LL |             wait().await;
   |             ^^^^^^ help: consider `Box::pin` on it: `Box::pin(wait())`

error: large future with a size of 65540 bytes
  --> $DIR/large_futures.rs:28:5
   |
LL |     foo().await;
   |     ^^^^^ help: consider `Box::pin` on it: `Box::pin(foo())`

error: large future with a size of 49159 bytes
  --> $DIR/large_futures.rs:29:5
   |
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
  --> $DIR/large_futures.rs:41:5
   |
LL | /     async {
LL | |         let x = [0i32; 1024 * 16];
LL | |         async {}.await;
LL | |         println!("{:?}", x);
LL | |     }
   | |_____^
   |
help: consider `Box::pin` on it
   |
LL ~     Box::pin(async {
LL +         let x = [0i32; 1024 * 16];
LL +         async {}.await;
LL +         println!("{:?}", x);
LL +     })
   |

error: large future with a size of 65540 bytes
  --> $DIR/large_futures.rs:52:13
   |
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