]> git.lizzy.rs Git - rust.git/blob - tests/ui/await_holding_invalid.stderr
c8d49820c0209cad978d7da87615cda52cd665b6
[rust.git] / tests / ui / await_holding_invalid.stderr
1 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
2   --> $DIR/await_holding_invalid.rs:8:9
3    |
4 LL |     let guard = x.lock().unwrap();
5    |         ^^^^^
6    |
7    = note: `-D clippy::await-holding-lock` implied by `-D warnings`
8 note: these are all the await points this lock is held through
9   --> $DIR/await_holding_invalid.rs:8:5
10    |
11 LL | /     let guard = x.lock().unwrap();
12 LL | |     baz().await
13 LL | | }
14    | |_^
15
16 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
17   --> $DIR/await_holding_invalid.rs:29:9
18    |
19 LL |     let guard = x.lock().unwrap();
20    |         ^^^^^
21    |
22 note: these are all the await points this lock is held through
23   --> $DIR/await_holding_invalid.rs:29:5
24    |
25 LL | /     let guard = x.lock().unwrap();
26 LL | |
27 LL | |     let second = baz().await;
28 LL | |
29 ...  |
30 LL | |     first + second + third
31 LL | | }
32    | |_^
33
34 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
35   --> $DIR/await_holding_invalid.rs:42:13
36    |
37 LL |         let guard = x.lock().unwrap();
38    |             ^^^^^
39    |
40 note: these are all the await points this lock is held through
41   --> $DIR/await_holding_invalid.rs:42:9
42    |
43 LL | /         let guard = x.lock().unwrap();
44 LL | |         baz().await
45 LL | |     };
46    | |_____^
47
48 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
49   --> $DIR/await_holding_invalid.rs:54:13
50    |
51 LL |         let guard = x.lock().unwrap();
52    |             ^^^^^
53    |
54 note: these are all the await points this lock is held through
55   --> $DIR/await_holding_invalid.rs:54:9
56    |
57 LL | /         let guard = x.lock().unwrap();
58 LL | |         baz().await
59 LL | |     }
60    | |_____^
61
62 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
63   --> $DIR/await_holding_invalid.rs:60:9
64    |
65 LL |     let b = x.borrow();
66    |         ^
67    |
68    = note: `-D clippy::await-holding-refcell-ref` implied by `-D warnings`
69 note: these are all the await points this ref is held through
70   --> $DIR/await_holding_invalid.rs:60:5
71    |
72 LL | /     let b = x.borrow();
73 LL | |     baz().await
74 LL | | }
75    | |_^
76
77 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
78   --> $DIR/await_holding_invalid.rs:65:9
79    |
80 LL |     let b = x.borrow_mut();
81    |         ^
82    |
83 note: these are all the await points this ref is held through
84   --> $DIR/await_holding_invalid.rs:65:5
85    |
86 LL | /     let b = x.borrow_mut();
87 LL | |     baz().await
88 LL | | }
89    | |_^
90
91 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
92   --> $DIR/await_holding_invalid.rs:82:9
93    |
94 LL |     let b = x.borrow_mut();
95    |         ^
96    |
97 note: these are all the await points this ref is held through
98   --> $DIR/await_holding_invalid.rs:82:5
99    |
100 LL | /     let b = x.borrow_mut();
101 LL | |
102 LL | |     let second = baz().await;
103 LL | |
104 ...  |
105 LL | |     first + second + third
106 LL | | }
107    | |_^
108
109 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
110   --> $DIR/await_holding_invalid.rs:94:9
111    |
112 LL |     let b = x.borrow_mut();
113    |         ^
114    |
115 note: these are all the await points this ref is held through
116   --> $DIR/await_holding_invalid.rs:94:5
117    |
118 LL | /     let b = x.borrow_mut();
119 LL | |
120 LL | |     let second = baz().await;
121 LL | |
122 ...  |
123 LL | |     first + second + third
124 LL | | }
125    | |_^
126
127 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
128   --> $DIR/await_holding_invalid.rs:109:13
129    |
130 LL |         let b = x.borrow_mut();
131    |             ^
132    |
133 note: these are all the await points this ref is held through
134   --> $DIR/await_holding_invalid.rs:109:9
135    |
136 LL | /         let b = x.borrow_mut();
137 LL | |         baz().await
138 LL | |     };
139    | |_____^
140
141 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
142   --> $DIR/await_holding_invalid.rs:121:13
143    |
144 LL |         let b = x.borrow_mut();
145    |             ^
146    |
147 note: these are all the await points this ref is held through
148   --> $DIR/await_holding_invalid.rs:121:9
149    |
150 LL | /         let b = x.borrow_mut();
151 LL | |         baz().await
152 LL | |     }
153    | |_____^
154
155 error: aborting due to 10 previous errors
156