2022-11-21 19:34:47 +00:00
|
|
|
error: non-binding `let` on a synchronization lock
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:10:5
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
2021-12-06 11:33:31 +00:00
|
|
|
LL | let _ = p_m.lock();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
2022-11-21 19:34:47 +00:00
|
|
|
= note: `-D clippy::let-underscore-lock` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::let_underscore_lock)]`
|
2021-12-06 11:33:31 +00:00
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: non-binding `let` on a synchronization lock
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:14:5
|
2021-12-06 11:33:31 +00:00
|
|
|
|
|
|
|
|
LL | let _ = p_m1.lock();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: non-binding `let` on a synchronization lock
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:18:5
|
2021-12-06 11:33:31 +00:00
|
|
|
|
|
|
|
|
LL | let _ = p_rw.read();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: non-binding `let` on a synchronization lock
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:20:5
|
2021-12-06 11:33:31 +00:00
|
|
|
|
|
|
|
|
LL | let _ = p_rw.write();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2020-01-28 09:28:11 +00:00
|
|
|
|