2022-02-12 09:23:07 +00:00
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:8:13
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::await-holding-lock` implied by `-D warnings`
|
2022-02-12 09:23:07 +00:00
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:8:9
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let guard = x.lock().unwrap();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2020-04-08 04:20:37 +00:00
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:23:13
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let guard = x.read().unwrap();
|
|
|
|
| ^^^^^
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:23:9
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let guard = x.read().unwrap();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:28:13
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let mut guard = x.write().unwrap();
|
|
|
|
| ^^^^^^^^^
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:28:9
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let mut guard = x.write().unwrap();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2022-02-12 09:23:07 +00:00
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:53:13
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:53:9
|
2020-04-08 04:20:37 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let guard = x.lock().unwrap();
|
2020-04-08 04:20:37 +00:00
|
|
|
LL | |
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | | let second = baz().await;
|
2020-04-08 04:20:37 +00:00
|
|
|
LL | |
|
|
|
|
... |
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | | first + second + third
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2020-04-08 04:20:37 +00:00
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:66:17
|
2020-04-17 06:21:49 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:66:13
|
|
|
|
|
|
|
|
|
LL | / let guard = x.lock().unwrap();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | };
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:78:17
|
|
|
|
|
|
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:78:13
|
|
|
|
|
|
|
|
|
LL | / let guard = x.lock().unwrap();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:89:13
|
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
2020-04-17 06:21:49 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:89:9
|
2020-04-17 06:21:49 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let guard = x.lock();
|
2020-04-17 06:21:49 +00:00
|
|
|
LL | | baz().await
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | | }
|
2020-04-17 06:21:49 +00:00
|
|
|
| |_____^
|
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
error: this `MutexGuard` is held across an `await` point
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:104:13
|
2020-04-17 06:21:49 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | let guard = x.read();
|
2020-04-17 06:21:49 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-02-12 09:23:07 +00:00
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
2022-02-12 09:32:44 +00:00
|
|
|
--> $DIR/await_holding_lock.rs:104:9
|
2020-04-17 06:21:49 +00:00
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
LL | / let guard = x.read();
|
2020-04-17 06:21:49 +00:00
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
2022-02-12 09:32:44 +00:00
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:109:13
|
|
|
|
|
|
|
|
|
LL | let mut guard = x.write();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:109:9
|
|
|
|
|
|
|
|
|
LL | / let mut guard = x.write();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:134:13
|
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:134:9
|
|
|
|
|
|
|
|
|
LL | / let guard = x.lock();
|
|
|
|
LL | |
|
|
|
|
LL | | let second = baz().await;
|
|
|
|
LL | |
|
|
|
|
... |
|
|
|
|
LL | | first + second + third
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:147:17
|
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:147:13
|
|
|
|
|
|
|
|
|
LL | / let guard = x.lock();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | };
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: this `MutexGuard` is held across an `await` point
|
|
|
|
--> $DIR/await_holding_lock.rs:159:17
|
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
|
|
|
|
note: these are all the `await` points this lock is held through
|
|
|
|
--> $DIR/await_holding_lock.rs:159:13
|
|
|
|
|
|
|
|
|
LL | / let guard = x.lock();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2020-04-08 04:20:37 +00:00
|
|
|
|