1 error: this `MutexGuard` is held across an `await` point
2 --> $DIR/await_holding_lock.rs:9:13
4 LL | let guard = x.lock().unwrap();
7 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
8 note: these are all the `await` points this lock is held through
9 --> $DIR/await_holding_lock.rs:9:9
11 LL | / let guard = x.lock().unwrap();
15 = note: `-D clippy::await-holding-lock` implied by `-D warnings`
17 error: this `MutexGuard` is held across an `await` point
18 --> $DIR/await_holding_lock.rs:24:13
20 LL | let guard = x.read().unwrap();
23 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
24 note: these are all the `await` points this lock is held through
25 --> $DIR/await_holding_lock.rs:24:9
27 LL | / let guard = x.read().unwrap();
32 error: this `MutexGuard` is held across an `await` point
33 --> $DIR/await_holding_lock.rs:29:13
35 LL | let mut guard = x.write().unwrap();
38 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
39 note: these are all the `await` points this lock is held through
40 --> $DIR/await_holding_lock.rs:29:9
42 LL | / let mut guard = x.write().unwrap();
47 error: this `MutexGuard` is held across an `await` point
48 --> $DIR/await_holding_lock.rs:50:13
50 LL | let guard = x.lock().unwrap();
53 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
54 note: these are all the `await` points this lock is held through
55 --> $DIR/await_holding_lock.rs:50:9
57 LL | / let guard = x.lock().unwrap();
59 LL | | let second = baz().await;
62 LL | | first + second + third
66 error: this `MutexGuard` is held across an `await` point
67 --> $DIR/await_holding_lock.rs:63:17
69 LL | let guard = x.lock().unwrap();
72 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
73 note: these are all the `await` points this lock is held through
74 --> $DIR/await_holding_lock.rs:63:13
76 LL | / let guard = x.lock().unwrap();
81 error: this `MutexGuard` is held across an `await` point
82 --> $DIR/await_holding_lock.rs:75:17
84 LL | let guard = x.lock().unwrap();
87 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
88 note: these are all the `await` points this lock is held through
89 --> $DIR/await_holding_lock.rs:75:13
91 LL | / let guard = x.lock().unwrap();
96 error: this `MutexGuard` is held across an `await` point
97 --> $DIR/await_holding_lock.rs:87:13
99 LL | let guard = x.lock();
102 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
103 note: these are all the `await` points this lock is held through
104 --> $DIR/await_holding_lock.rs:87:9
106 LL | / let guard = x.lock();
111 error: this `MutexGuard` is held across an `await` point
112 --> $DIR/await_holding_lock.rs:102:13
114 LL | let guard = x.read();
117 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
118 note: these are all the `await` points this lock is held through
119 --> $DIR/await_holding_lock.rs:102:9
121 LL | / let guard = x.read();
126 error: this `MutexGuard` is held across an `await` point
127 --> $DIR/await_holding_lock.rs:107:13
129 LL | let mut guard = x.write();
132 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
133 note: these are all the `await` points this lock is held through
134 --> $DIR/await_holding_lock.rs:107:9
136 LL | / let mut guard = x.write();
141 error: this `MutexGuard` is held across an `await` point
142 --> $DIR/await_holding_lock.rs:128:13
144 LL | let guard = x.lock();
147 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
148 note: these are all the `await` points this lock is held through
149 --> $DIR/await_holding_lock.rs:128:9
151 LL | / let guard = x.lock();
153 LL | | let second = baz().await;
156 LL | | first + second + third
160 error: this `MutexGuard` is held across an `await` point
161 --> $DIR/await_holding_lock.rs:141:17
163 LL | let guard = x.lock();
166 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
167 note: these are all the `await` points this lock is held through
168 --> $DIR/await_holding_lock.rs:141:13
170 LL | / let guard = x.lock();
175 error: this `MutexGuard` is held across an `await` point
176 --> $DIR/await_holding_lock.rs:153:17
178 LL | let guard = x.lock();
181 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
182 note: these are all the `await` points this lock is held through
183 --> $DIR/await_holding_lock.rs:153:13
185 LL | / let guard = x.lock();
190 error: this `MutexGuard` is held across an `await` point
191 --> $DIR/await_holding_lock.rs:173:9
193 LL | let mut guard = x.lock().unwrap();
196 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
197 note: these are all the `await` points this lock is held through
198 --> $DIR/await_holding_lock.rs:173:5
200 LL | / let mut guard = x.lock().unwrap();
207 error: aborting due to 13 previous errors