]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/await_holding_refcell_ref.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / clippy / tests / ui / await_holding_refcell_ref.stderr
1 error: this `RefCell` reference is held across an `await` point
2   --> $DIR/await_holding_refcell_ref.rs:6:9
3    |
4 LL |     let b = x.borrow();
5    |         ^
6    |
7    = note: `-D clippy::await-holding-refcell-ref` implied by `-D warnings`
8    = help: ensure the reference is dropped before calling `await`
9 note: these are all the `await` points this reference is held through
10   --> $DIR/await_holding_refcell_ref.rs:6:5
11    |
12 LL | /     let b = x.borrow();
13 LL | |     baz().await
14 LL | | }
15    | |_^
16
17 error: this `RefCell` reference is held across an `await` point
18   --> $DIR/await_holding_refcell_ref.rs:11:9
19    |
20 LL |     let b = x.borrow_mut();
21    |         ^
22    |
23    = help: ensure the reference is dropped before calling `await`
24 note: these are all the `await` points this reference is held through
25   --> $DIR/await_holding_refcell_ref.rs:11:5
26    |
27 LL | /     let b = x.borrow_mut();
28 LL | |     baz().await
29 LL | | }
30    | |_^
31
32 error: this `RefCell` reference is held across an `await` point
33   --> $DIR/await_holding_refcell_ref.rs:32:9
34    |
35 LL |     let b = x.borrow_mut();
36    |         ^
37    |
38    = help: ensure the reference is dropped before calling `await`
39 note: these are all the `await` points this reference is held through
40   --> $DIR/await_holding_refcell_ref.rs:32:5
41    |
42 LL | /     let b = x.borrow_mut();
43 LL | |
44 LL | |     let second = baz().await;
45 LL | |
46 ...  |
47 LL | |     first + second + third
48 LL | | }
49    | |_^
50
51 error: this `RefCell` reference is held across an `await` point
52   --> $DIR/await_holding_refcell_ref.rs:44:9
53    |
54 LL |     let b = x.borrow_mut();
55    |         ^
56    |
57    = help: ensure the reference is dropped before calling `await`
58 note: these are all the `await` points this reference is held through
59   --> $DIR/await_holding_refcell_ref.rs:44:5
60    |
61 LL | /     let b = x.borrow_mut();
62 LL | |
63 LL | |     let second = baz().await;
64 LL | |
65 ...  |
66 LL | |     first + second + third
67 LL | | }
68    | |_^
69
70 error: this `RefCell` reference is held across an `await` point
71   --> $DIR/await_holding_refcell_ref.rs:59:13
72    |
73 LL |         let b = x.borrow_mut();
74    |             ^
75    |
76    = help: ensure the reference is dropped before calling `await`
77 note: these are all the `await` points this reference is held through
78   --> $DIR/await_holding_refcell_ref.rs:59:9
79    |
80 LL | /         let b = x.borrow_mut();
81 LL | |         baz().await
82 LL | |     };
83    | |_____^
84
85 error: this `RefCell` reference is held across an `await` point
86   --> $DIR/await_holding_refcell_ref.rs:71:13
87    |
88 LL |         let b = x.borrow_mut();
89    |             ^
90    |
91    = help: ensure the reference is dropped before calling `await`
92 note: these are all the `await` points this reference is held through
93   --> $DIR/await_holding_refcell_ref.rs:71:9
94    |
95 LL | /         let b = x.borrow_mut();
96 LL | |         baz().await
97 LL | |     }
98    | |_____^
99
100 error: aborting due to 6 previous errors
101