1
1
error: this `MutexGuard` is held across an `await` point
2
- --> tests/ui/await_holding_lock.rs:9 :13
2
+ --> tests/ui/await_holding_lock.rs:10 :13
3
3
|
4
4
LL | let guard = x.lock().unwrap();
5
5
| ^^^^^
6
6
|
7
7
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
8
8
note: these are all the `await` points this lock is held through
9
- --> tests/ui/await_holding_lock.rs:11 :15
9
+ --> tests/ui/await_holding_lock.rs:12 :15
10
10
|
11
11
LL | baz().await
12
12
| ^^^^^
13
13
= note: `-D clippy::await-holding-lock` implied by `-D warnings`
14
14
= help: to override `-D warnings` add `#[allow(clippy::await_holding_lock)]`
15
15
16
16
error: this `MutexGuard` is held across an `await` point
17
- --> tests/ui/await_holding_lock.rs:25 :13
17
+ --> tests/ui/await_holding_lock.rs:26 :13
18
18
|
19
19
LL | let guard = x.read().unwrap();
20
20
| ^^^^^
21
21
|
22
22
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
23
23
note: these are all the `await` points this lock is held through
24
- --> tests/ui/await_holding_lock.rs:27 :15
24
+ --> tests/ui/await_holding_lock.rs:28 :15
25
25
|
26
26
LL | baz().await
27
27
| ^^^^^
28
28
29
29
error: this `MutexGuard` is held across an `await` point
30
- --> tests/ui/await_holding_lock.rs:31 :13
30
+ --> tests/ui/await_holding_lock.rs:32 :13
31
31
|
32
32
LL | let mut guard = x.write().unwrap();
33
33
| ^^^^^^^^^
34
34
|
35
35
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
36
36
note: these are all the `await` points this lock is held through
37
- --> tests/ui/await_holding_lock.rs:33 :15
37
+ --> tests/ui/await_holding_lock.rs:34 :15
38
38
|
39
39
LL | baz().await
40
40
| ^^^^^
41
41
42
42
error: this `MutexGuard` is held across an `await` point
43
- --> tests/ui/await_holding_lock.rs:53 :13
43
+ --> tests/ui/await_holding_lock.rs:54 :13
44
44
|
45
45
LL | let guard = x.lock().unwrap();
46
46
| ^^^^^
47
47
|
48
48
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
49
49
note: these are all the `await` points this lock is held through
50
- --> tests/ui/await_holding_lock.rs:56 :28
50
+ --> tests/ui/await_holding_lock.rs:57 :28
51
51
|
52
52
LL | let second = baz().await;
53
53
| ^^^^^
@@ -56,79 +56,79 @@ LL | let third = baz().await;
56
56
| ^^^^^
57
57
58
58
error: this `MutexGuard` is held across an `await` point
59
- --> tests/ui/await_holding_lock.rs:67 :17
59
+ --> tests/ui/await_holding_lock.rs:68 :17
60
60
|
61
61
LL | let guard = x.lock().unwrap();
62
62
| ^^^^^
63
63
|
64
64
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
65
65
note: these are all the `await` points this lock is held through
66
- --> tests/ui/await_holding_lock.rs:69 :19
66
+ --> tests/ui/await_holding_lock.rs:70 :19
67
67
|
68
68
LL | baz().await
69
69
| ^^^^^
70
70
71
71
error: this `MutexGuard` is held across an `await` point
72
- --> tests/ui/await_holding_lock.rs:80 :17
72
+ --> tests/ui/await_holding_lock.rs:81 :17
73
73
|
74
74
LL | let guard = x.lock().unwrap();
75
75
| ^^^^^
76
76
|
77
77
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
78
78
note: these are all the `await` points this lock is held through
79
- --> tests/ui/await_holding_lock.rs:82 :19
79
+ --> tests/ui/await_holding_lock.rs:83 :19
80
80
|
81
81
LL | baz().await
82
82
| ^^^^^
83
83
84
84
error: this `MutexGuard` is held across an `await` point
85
- --> tests/ui/await_holding_lock.rs:93 :13
85
+ --> tests/ui/await_holding_lock.rs:94 :13
86
86
|
87
87
LL | let guard = x.lock();
88
88
| ^^^^^
89
89
|
90
90
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
91
91
note: these are all the `await` points this lock is held through
92
- --> tests/ui/await_holding_lock.rs:95 :15
92
+ --> tests/ui/await_holding_lock.rs:96 :15
93
93
|
94
94
LL | baz().await
95
95
| ^^^^^
96
96
97
97
error: this `MutexGuard` is held across an `await` point
98
- --> tests/ui/await_holding_lock.rs:109 :13
98
+ --> tests/ui/await_holding_lock.rs:110 :13
99
99
|
100
100
LL | let guard = x.read();
101
101
| ^^^^^
102
102
|
103
103
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
104
104
note: these are all the `await` points this lock is held through
105
- --> tests/ui/await_holding_lock.rs:111 :15
105
+ --> tests/ui/await_holding_lock.rs:112 :15
106
106
|
107
107
LL | baz().await
108
108
| ^^^^^
109
109
110
110
error: this `MutexGuard` is held across an `await` point
111
- --> tests/ui/await_holding_lock.rs:115 :13
111
+ --> tests/ui/await_holding_lock.rs:116 :13
112
112
|
113
113
LL | let mut guard = x.write();
114
114
| ^^^^^^^^^
115
115
|
116
116
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
117
117
note: these are all the `await` points this lock is held through
118
- --> tests/ui/await_holding_lock.rs:117 :15
118
+ --> tests/ui/await_holding_lock.rs:118 :15
119
119
|
120
120
LL | baz().await
121
121
| ^^^^^
122
122
123
123
error: this `MutexGuard` is held across an `await` point
124
- --> tests/ui/await_holding_lock.rs:137 :13
124
+ --> tests/ui/await_holding_lock.rs:138 :13
125
125
|
126
126
LL | let guard = x.lock();
127
127
| ^^^^^
128
128
|
129
129
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
130
130
note: these are all the `await` points this lock is held through
131
- --> tests/ui/await_holding_lock.rs:140 :28
131
+ --> tests/ui/await_holding_lock.rs:141 :28
132
132
|
133
133
LL | let second = baz().await;
134
134
| ^^^^^
@@ -137,40 +137,40 @@ LL | let third = baz().await;
137
137
| ^^^^^
138
138
139
139
error: this `MutexGuard` is held across an `await` point
140
- --> tests/ui/await_holding_lock.rs:151 :17
140
+ --> tests/ui/await_holding_lock.rs:152 :17
141
141
|
142
142
LL | let guard = x.lock();
143
143
| ^^^^^
144
144
|
145
145
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
146
146
note: these are all the `await` points this lock is held through
147
- --> tests/ui/await_holding_lock.rs:153 :19
147
+ --> tests/ui/await_holding_lock.rs:154 :19
148
148
|
149
149
LL | baz().await
150
150
| ^^^^^
151
151
152
152
error: this `MutexGuard` is held across an `await` point
153
- --> tests/ui/await_holding_lock.rs:164 :17
153
+ --> tests/ui/await_holding_lock.rs:165 :17
154
154
|
155
155
LL | let guard = x.lock();
156
156
| ^^^^^
157
157
|
158
158
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
159
159
note: these are all the `await` points this lock is held through
160
- --> tests/ui/await_holding_lock.rs:166 :19
160
+ --> tests/ui/await_holding_lock.rs:167 :19
161
161
|
162
162
LL | baz().await
163
163
| ^^^^^
164
164
165
165
error: this `MutexGuard` is held across an `await` point
166
- --> tests/ui/await_holding_lock.rs:185 :9
166
+ --> tests/ui/await_holding_lock.rs:186 :9
167
167
|
168
168
LL | let mut guard = x.lock().unwrap();
169
169
| ^^^^^^^^^
170
170
|
171
171
= help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
172
172
note: these are all the `await` points this lock is held through
173
- --> tests/ui/await_holding_lock.rs:189 :11
173
+ --> tests/ui/await_holding_lock.rs:190 :11
174
174
|
175
175
LL | baz().await;
176
176
| ^^^^^
0 commit comments