11error: 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
33 |
44LL | let guard = x.lock().unwrap();
55 | ^^^^^
66 |
77 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
88note: 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
1010 |
1111LL | baz().await
1212 | ^^^^^
1313 = note: `-D clippy::await-holding-lock` implied by `-D warnings`
1414 = help: to override `-D warnings` add `#[allow(clippy::await_holding_lock)]`
1515
1616error: 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
1818 |
1919LL | let guard = x.read().unwrap();
2020 | ^^^^^
2121 |
2222 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
2323note: 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
2525 |
2626LL | baz().await
2727 | ^^^^^
2828
2929error: 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
3131 |
3232LL | let mut guard = x.write().unwrap();
3333 | ^^^^^^^^^
3434 |
3535 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
3636note: 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
3838 |
3939LL | baz().await
4040 | ^^^^^
4141
4242error: 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
4444 |
4545LL | let guard = x.lock().unwrap();
4646 | ^^^^^
4747 |
4848 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
4949note: 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
5151 |
5252LL | let second = baz().await;
5353 | ^^^^^
@@ -56,79 +56,79 @@ LL | let third = baz().await;
5656 | ^^^^^
5757
5858error: 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
6060 |
6161LL | let guard = x.lock().unwrap();
6262 | ^^^^^
6363 |
6464 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
6565note: 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
6767 |
6868LL | baz().await
6969 | ^^^^^
7070
7171error: 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
7373 |
7474LL | let guard = x.lock().unwrap();
7575 | ^^^^^
7676 |
7777 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
7878note: 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
8080 |
8181LL | baz().await
8282 | ^^^^^
8383
8484error: 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
8686 |
8787LL | let guard = x.lock();
8888 | ^^^^^
8989 |
9090 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
9191note: 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
9393 |
9494LL | baz().await
9595 | ^^^^^
9696
9797error: 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
9999 |
100100LL | let guard = x.read();
101101 | ^^^^^
102102 |
103103 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
104104note: 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
106106 |
107107LL | baz().await
108108 | ^^^^^
109109
110110error: 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
112112 |
113113LL | let mut guard = x.write();
114114 | ^^^^^^^^^
115115 |
116116 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
117117note: 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
119119 |
120120LL | baz().await
121121 | ^^^^^
122122
123123error: 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
125125 |
126126LL | let guard = x.lock();
127127 | ^^^^^
128128 |
129129 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
130130note: 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
132132 |
133133LL | let second = baz().await;
134134 | ^^^^^
@@ -137,40 +137,40 @@ LL | let third = baz().await;
137137 | ^^^^^
138138
139139error: 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
141141 |
142142LL | let guard = x.lock();
143143 | ^^^^^
144144 |
145145 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
146146note: 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
148148 |
149149LL | baz().await
150150 | ^^^^^
151151
152152error: 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
154154 |
155155LL | let guard = x.lock();
156156 | ^^^^^
157157 |
158158 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
159159note: 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
161161 |
162162LL | baz().await
163163 | ^^^^^
164164
165165error: 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
167167 |
168168LL | let mut guard = x.lock().unwrap();
169169 | ^^^^^^^^^
170170 |
171171 = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
172172note: 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
174174 |
175175LL | baz().await;
176176 | ^^^^^
0 commit comments