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