11error: non-binding let on a synchronization lock
2- --> $DIR/let_underscore_lock.rs:7 :5
2+ --> $DIR/let_underscore_lock.rs:9 :5
33 |
44LL | let _ = m.lock();
55 | ^^^^^^^^^^^^^^^^^
@@ -8,44 +8,76 @@ LL | let _ = m.lock();
88 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
99
1010error: non-binding let on a synchronization lock
11- --> $DIR/let_underscore_lock.rs:8 :5
11+ --> $DIR/let_underscore_lock.rs:10 :5
1212 |
1313LL | let _ = rw.read();
1414 | ^^^^^^^^^^^^^^^^^^
1515 |
1616 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
1717
1818error: non-binding let on a synchronization lock
19- --> $DIR/let_underscore_lock.rs:9 :5
19+ --> $DIR/let_underscore_lock.rs:11 :5
2020 |
2121LL | let _ = rw.write();
2222 | ^^^^^^^^^^^^^^^^^^^
2323 |
2424 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
2525
2626error: non-binding let on a synchronization lock
27- --> $DIR/let_underscore_lock.rs:10 :5
27+ --> $DIR/let_underscore_lock.rs:12 :5
2828 |
2929LL | let _ = m.try_lock();
3030 | ^^^^^^^^^^^^^^^^^^^^^
3131 |
3232 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
3333
3434error: non-binding let on a synchronization lock
35- --> $DIR/let_underscore_lock.rs:11 :5
35+ --> $DIR/let_underscore_lock.rs:13 :5
3636 |
3737LL | let _ = rw.try_read();
3838 | ^^^^^^^^^^^^^^^^^^^^^^
3939 |
4040 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
4141
4242error: non-binding let on a synchronization lock
43- --> $DIR/let_underscore_lock.rs:12 :5
43+ --> $DIR/let_underscore_lock.rs:14 :5
4444 |
4545LL | let _ = rw.try_write();
4646 | ^^^^^^^^^^^^^^^^^^^^^^^
4747 |
4848 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
4949
50- error: aborting due to 6 previous errors
50+ error: non-binding let on a synchronization lock
51+ --> $DIR/let_underscore_lock.rs:19:5
52+ |
53+ LL | let _ = p_m.lock();
54+ | ^^^^^^^^^^^^^^^^^^^
55+ |
56+ = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
57+
58+ error: non-binding let on a synchronization lock
59+ --> $DIR/let_underscore_lock.rs:22:5
60+ |
61+ LL | let _ = p_m1.lock();
62+ | ^^^^^^^^^^^^^^^^^^^^
63+ |
64+ = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
65+
66+ error: non-binding let on a synchronization lock
67+ --> $DIR/let_underscore_lock.rs:25:5
68+ |
69+ LL | let _ = p_rw.read();
70+ | ^^^^^^^^^^^^^^^^^^^^
71+ |
72+ = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
73+
74+ error: non-binding let on a synchronization lock
75+ --> $DIR/let_underscore_lock.rs:26:5
76+ |
77+ LL | let _ = p_rw.write();
78+ | ^^^^^^^^^^^^^^^^^^^^^
79+ |
80+ = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
81+
82+ error: aborting due to 10 previous errors
5183
0 commit comments