2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:10:13
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:12:15
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::await-holding-lock` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::await_holding_lock)]`
|
2020-04-07 23:20:37 -05:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:26:13
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let guard = x.read().unwrap();
|
|
|
|
| ^^^^^
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:28:15
|
2020-04-07 23:20:37 -05:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:32:13
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let mut guard = x.write().unwrap();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:34:15
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:54:13
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:57:28
|
2023-01-28 17:20:02 -06:00
|
|
|
|
|
|
|
|
LL | let second = baz().await;
|
|
|
|
| ^^^^^
|
|
|
|
LL |
|
|
|
|
LL | let third = baz().await;
|
|
|
|
| ^^^^^
|
2020-04-07 23:20:37 -05:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:68:17
|
2020-04-17 01:21:49 -05:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:70:19
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:81:17
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock().unwrap();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:83:19
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:94:13
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
2020-04-17 01:21:49 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:96:15
|
2020-04-17 01:21:49 -05:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2020-04-17 01:21:49 -05:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:110:13
|
2020-04-17 01:21:49 -05:00
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
LL | let guard = x.read();
|
2020-04-17 01:21:49 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:112:15
|
2020-04-17 01:21:49 -05:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2020-04-17 01:21:49 -05:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:116:13
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let mut guard = x.write();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:118:15
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:138:13
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:141:28
|
2023-01-28 17:20:02 -06:00
|
|
|
|
|
|
|
|
LL | let second = baz().await;
|
|
|
|
| ^^^^^
|
|
|
|
LL |
|
|
|
|
LL | let third = baz().await;
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:152:17
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:154:19
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:165:17
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let guard = x.lock();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:167:19
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-01-28 17:20:02 -06:00
|
|
|
LL | baz().await
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
2024-07-11 08:44:03 -05:00
|
|
|
error: this `MutexGuard` is held across an await point
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:186:9
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
|
LL | let mut guard = x.lock().unwrap();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2024-07-11 08:44:03 -05: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
|
2024-03-21 16:20:40 -05:00
|
|
|
--> tests/ui/await_holding_lock.rs:190:11
|
2023-01-28 17:20:02 -06:00
|
|
|
|
|
|
|
|
LL | baz().await;
|
|
|
|
| ^^^^^
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
2020-04-07 23:20:37 -05:00
|
|
|
|