]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | error: this `MutexGuard` is held across an `await` point |
2 | --> $DIR/await_holding_lock.rs:9:13 | |
f20569fa | 3 | | |
5e7ed085 FG |
4 | LL | 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 |
8 | note: these are all the `await` points this lock is held through | |
781aab86 | 9 | --> $DIR/await_holding_lock.rs:11:15 |
f20569fa | 10 | | |
781aab86 FG |
11 | LL | 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 | 16 | error: this `MutexGuard` is held across an `await` point |
781aab86 | 17 | --> $DIR/await_holding_lock.rs:25:13 |
f20569fa | 18 | | |
5e7ed085 FG |
19 | LL | 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 |
23 | note: these are all the `await` points this lock is held through | |
781aab86 | 24 | --> $DIR/await_holding_lock.rs:27:15 |
f20569fa | 25 | | |
781aab86 FG |
26 | LL | baz().await |
27 | | ^^^^^ | |
5e7ed085 FG |
28 | |
29 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 30 | --> $DIR/await_holding_lock.rs:31:13 |
5e7ed085 FG |
31 | | |
32 | LL | 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 | |
36 | note: these are all the `await` points this lock is held through | |
781aab86 | 37 | --> $DIR/await_holding_lock.rs:33:15 |
5e7ed085 | 38 | | |
781aab86 FG |
39 | LL | baz().await |
40 | | ^^^^^ | |
5e7ed085 FG |
41 | |
42 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 43 | --> $DIR/await_holding_lock.rs:53:13 |
5e7ed085 FG |
44 | | |
45 | LL | 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 | |
49 | note: these are all the `await` points this lock is held through | |
781aab86 FG |
50 | --> $DIR/await_holding_lock.rs:56:28 |
51 | | | |
52 | LL | let second = baz().await; | |
53 | | ^^^^^ | |
54 | LL | | |
55 | LL | let third = baz().await; | |
56 | | ^^^^^ | |
f20569fa | 57 | |
5e7ed085 | 58 | error: this `MutexGuard` is held across an `await` point |
781aab86 | 59 | --> $DIR/await_holding_lock.rs:67:17 |
f20569fa | 60 | | |
5e7ed085 FG |
61 | LL | 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 | |
65 | note: these are all the `await` points this lock is held through | |
781aab86 | 66 | --> $DIR/await_holding_lock.rs:69:19 |
5e7ed085 | 67 | | |
781aab86 FG |
68 | LL | baz().await |
69 | | ^^^^^ | |
5e7ed085 FG |
70 | |
71 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 72 | --> $DIR/await_holding_lock.rs:80:17 |
5e7ed085 FG |
73 | | |
74 | LL | 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 | |
78 | note: these are all the `await` points this lock is held through | |
781aab86 | 79 | --> $DIR/await_holding_lock.rs:82:19 |
5e7ed085 | 80 | | |
781aab86 FG |
81 | LL | baz().await |
82 | | ^^^^^ | |
5e7ed085 FG |
83 | |
84 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 85 | --> $DIR/await_holding_lock.rs:93:13 |
5e7ed085 FG |
86 | | |
87 | LL | 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 |
91 | note: these are all the `await` points this lock is held through | |
781aab86 | 92 | --> $DIR/await_holding_lock.rs:95:15 |
f20569fa | 93 | | |
781aab86 FG |
94 | LL | baz().await |
95 | | ^^^^^ | |
f20569fa | 96 | |
5e7ed085 | 97 | error: this `MutexGuard` is held across an `await` point |
781aab86 | 98 | --> $DIR/await_holding_lock.rs:109:13 |
f20569fa | 99 | | |
5e7ed085 | 100 | LL | 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 |
104 | note: these are all the `await` points this lock is held through | |
781aab86 | 105 | --> $DIR/await_holding_lock.rs:111:15 |
f20569fa | 106 | | |
781aab86 FG |
107 | LL | baz().await |
108 | | ^^^^^ | |
f20569fa | 109 | |
5e7ed085 | 110 | error: this `MutexGuard` is held across an `await` point |
781aab86 | 111 | --> $DIR/await_holding_lock.rs:115:13 |
5e7ed085 FG |
112 | | |
113 | LL | 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 | |
117 | note: these are all the `await` points this lock is held through | |
781aab86 | 118 | --> $DIR/await_holding_lock.rs:117:15 |
5e7ed085 | 119 | | |
781aab86 FG |
120 | LL | baz().await |
121 | | ^^^^^ | |
5e7ed085 FG |
122 | |
123 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 124 | --> $DIR/await_holding_lock.rs:137:13 |
5e7ed085 FG |
125 | | |
126 | LL | let guard = x.lock(); | |
127 | | ^^^^^ | |
128 | | | |
129 | = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await | |
130 | note: these are all the `await` points this lock is held through | |
781aab86 FG |
131 | --> $DIR/await_holding_lock.rs:140:28 |
132 | | | |
133 | LL | let second = baz().await; | |
134 | | ^^^^^ | |
135 | LL | | |
136 | LL | let third = baz().await; | |
137 | | ^^^^^ | |
5e7ed085 FG |
138 | |
139 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 140 | --> $DIR/await_holding_lock.rs:151:17 |
5e7ed085 FG |
141 | | |
142 | LL | let guard = x.lock(); | |
143 | | ^^^^^ | |
144 | | | |
145 | = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await | |
146 | note: these are all the `await` points this lock is held through | |
781aab86 | 147 | --> $DIR/await_holding_lock.rs:153:19 |
5e7ed085 | 148 | | |
781aab86 FG |
149 | LL | baz().await |
150 | | ^^^^^ | |
5e7ed085 FG |
151 | |
152 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 153 | --> $DIR/await_holding_lock.rs:164:17 |
5e7ed085 FG |
154 | | |
155 | LL | let guard = x.lock(); | |
156 | | ^^^^^ | |
157 | | | |
158 | = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await | |
159 | note: these are all the `await` points this lock is held through | |
781aab86 | 160 | --> $DIR/await_holding_lock.rs:166:19 |
5e7ed085 | 161 | | |
781aab86 FG |
162 | LL | baz().await |
163 | | ^^^^^ | |
5e7ed085 FG |
164 | |
165 | error: this `MutexGuard` is held across an `await` point | |
781aab86 | 166 | --> $DIR/await_holding_lock.rs:185:9 |
5e7ed085 FG |
167 | | |
168 | LL | 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 | |
172 | note: these are all the `await` points this lock is held through | |
781aab86 FG |
173 | --> $DIR/await_holding_lock.rs:189:11 |
174 | | | |
175 | LL | baz().await; | |
176 | | ^^^^^ | |
5e7ed085 FG |
177 | |
178 | error: aborting due to 13 previous errors | |
f20569fa | 179 |