2020-01-28 09:28:11 +00:00
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:9:5
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
|
|
|
LL | let _ = m.lock();
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::let-underscore-lock` implied by `-D warnings`
|
2020-01-30 15:10:19 +00:00
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:10:5
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
|
|
|
LL | let _ = rw.read();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-30 15:10:19 +00:00
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:11:5
|
2020-01-28 09:28:11 +00:00
|
|
|
|
|
|
|
|
LL | let _ = rw.write();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-30 15:10:19 +00:00
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
2020-01-28 09:28:11 +00:00
|
|
|
|
2020-01-30 15:10:19 +00:00
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:12:5
|
2020-01-30 15:10:19 +00:00
|
|
|
|
|
|
|
|
LL | let _ = m.try_lock();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:13:5
|
2020-01-30 15:10:19 +00:00
|
|
|
|
|
|
|
|
LL | let _ = rw.try_read();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 11:33:31 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:14:5
|
2020-01-30 15:10:19 +00:00
|
|
|
|
|
|
|
|
LL | let _ = rw.try_write();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
2021-12-06 11:33:31 +00:00
|
|
|
error: non-binding let on a synchronization lock
|
2022-06-30 08:50:09 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:23:5
|
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`
|
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2022-06-30 08:50:09 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:26: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`
|
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2022-06-30 08:50:09 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:29: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`
|
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2022-06-30 08:50:09 +00:00
|
|
|
--> $DIR/let_underscore_lock.rs:30: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`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2020-01-28 09:28:11 +00:00
|
|
|
|