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