|
1 | 1 | error: non-binding let on a synchronization lock |
2 | 2 | --> $DIR/let_underscore_lock.rs:9:5 |
3 | 3 | | |
4 | | -LL | let _ = m.lock(); |
5 | | - | ^^^^^^^^^^^^^^^^^ |
6 | | - | |
7 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
8 | | - = note: `-D clippy::let-underscore-lock` implied by `-D warnings` |
9 | | - |
10 | | -error: non-binding let on a synchronization lock |
11 | | - --> $DIR/let_underscore_lock.rs:10:5 |
12 | | - | |
13 | | -LL | let _ = rw.read(); |
14 | | - | ^^^^^^^^^^^^^^^^^^ |
15 | | - | |
16 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
17 | | - |
18 | | -error: non-binding let on a synchronization lock |
19 | | - --> $DIR/let_underscore_lock.rs:11:5 |
20 | | - | |
21 | | -LL | let _ = rw.write(); |
22 | | - | ^^^^^^^^^^^^^^^^^^^ |
23 | | - | |
24 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
25 | | - |
26 | | -error: non-binding let on a synchronization lock |
27 | | - --> $DIR/let_underscore_lock.rs:12:5 |
28 | | - | |
29 | | -LL | let _ = m.try_lock(); |
30 | | - | ^^^^^^^^^^^^^^^^^^^^^ |
31 | | - | |
32 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
33 | | - |
34 | | -error: non-binding let on a synchronization lock |
35 | | - --> $DIR/let_underscore_lock.rs:13:5 |
36 | | - | |
37 | | -LL | let _ = rw.try_read(); |
38 | | - | ^^^^^^^^^^^^^^^^^^^^^^ |
39 | | - | |
40 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
41 | | - |
42 | | -error: non-binding let on a synchronization lock |
43 | | - --> $DIR/let_underscore_lock.rs:14:5 |
44 | | - | |
45 | | -LL | let _ = rw.try_write(); |
46 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ |
47 | | - | |
48 | | - = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
49 | | - |
50 | | -error: non-binding let on a synchronization lock |
51 | | - --> $DIR/let_underscore_lock.rs:23:5 |
52 | | - | |
53 | 4 | LL | let _ = p_m.lock(); |
54 | 5 | | ^^^^^^^^^^^^^^^^^^^ |
55 | 6 | | |
56 | 7 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
| 8 | + = note: `-D clippy::let-underscore-lock` implied by `-D warnings` |
57 | 9 |
|
58 | 10 | error: non-binding let on a synchronization lock |
59 | | - --> $DIR/let_underscore_lock.rs:26:5 |
| 11 | + --> $DIR/let_underscore_lock.rs:12:5 |
60 | 12 | | |
61 | 13 | LL | let _ = p_m1.lock(); |
62 | 14 | | ^^^^^^^^^^^^^^^^^^^^ |
63 | 15 | | |
64 | 16 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
65 | 17 |
|
66 | 18 | error: non-binding let on a synchronization lock |
67 | | - --> $DIR/let_underscore_lock.rs:29:5 |
| 19 | + --> $DIR/let_underscore_lock.rs:15:5 |
68 | 20 | | |
69 | 21 | LL | let _ = p_rw.read(); |
70 | 22 | | ^^^^^^^^^^^^^^^^^^^^ |
71 | 23 | | |
72 | 24 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
73 | 25 |
|
74 | 26 | error: non-binding let on a synchronization lock |
75 | | - --> $DIR/let_underscore_lock.rs:30:5 |
| 27 | + --> $DIR/let_underscore_lock.rs:16:5 |
76 | 28 | | |
77 | 29 | LL | let _ = p_rw.write(); |
78 | 30 | | ^^^^^^^^^^^^^^^^^^^^^ |
79 | 31 | | |
80 | 32 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` |
81 | 33 |
|
82 | | -error: aborting due to 10 previous errors |
| 34 | +error: aborting due to 4 previous errors |
83 | 35 |
|
0 commit comments