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

error: non-binding let on a synchronization lock
  --> $DIR/let_underscore_lock.rs:10:5
   |
LL |     let _ = 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
  --> $DIR/let_underscore_lock.rs:11:5
   |
LL |     let _ = rw.write();
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`

error: non-binding let on a synchronization lock
  --> $DIR/let_underscore_lock.rs:12:5
   |
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
  --> $DIR/let_underscore_lock.rs:13:5
   |
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
  --> $DIR/let_underscore_lock.rs:14:5
   |
LL |     let _ = rw.try_write();
   |     ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`

error: non-binding let on a synchronization lock
  --> $DIR/let_underscore_lock.rs:23:5
   |
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
  --> $DIR/let_underscore_lock.rs:26:5
   |
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
  --> $DIR/let_underscore_lock.rs:29:5
   |
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
  --> $DIR/let_underscore_lock.rs:30:5
   |
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