fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this `MutexGuard` is held across an `await` point 2 --> $DIR/await_holding_lock.rs:9:13 3 | 4LL | let guard = x.lock().unwrap(); 5 | ^^^^^ 6 | 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 9 --> $DIR/await_holding_lock.rs:11:15 10 | 11LL | baz().await 12 | ^^^^^ 13 = note: `-D clippy::await-holding-lock` implied by `-D warnings` 14 = help: to override `-D warnings` add `#[allow(clippy::await_holding_lock)]` 15 16error: this `MutexGuard` is held across an `await` point 17 --> $DIR/await_holding_lock.rs:25:13 18 | 19LL | let guard = x.read().unwrap(); 20 | ^^^^^ 21 | 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 24 --> $DIR/await_holding_lock.rs:27:15 25 | 26LL | baz().await 27 | ^^^^^ 28 29error: this `MutexGuard` is held across an `await` point 30 --> $DIR/await_holding_lock.rs:31:13 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 37 --> $DIR/await_holding_lock.rs:33:15 38 | 39LL | baz().await 40 | ^^^^^ 41 42error: this `MutexGuard` is held across an `await` point 43 --> $DIR/await_holding_lock.rs:53:13 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 50 --> $DIR/await_holding_lock.rs:56:28 51 | 52LL | let second = baz().await; 53 | ^^^^^ 54LL | 55LL | let third = baz().await; 56 | ^^^^^ 57 58error: this `MutexGuard` is held across an `await` point 59 --> $DIR/await_holding_lock.rs:67:17 60 | 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 66 --> $DIR/await_holding_lock.rs:69:19 67 | 68LL | baz().await 69 | ^^^^^ 70 71error: this `MutexGuard` is held across an `await` point 72 --> $DIR/await_holding_lock.rs:80:17 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 79 --> $DIR/await_holding_lock.rs:82:19 80 | 81LL | baz().await 82 | ^^^^^ 83 84error: this `MutexGuard` is held across an `await` point 85 --> $DIR/await_holding_lock.rs:93:13 86 | 87LL | let guard = x.lock(); 88 | ^^^^^ 89 | 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 92 --> $DIR/await_holding_lock.rs:95:15 93 | 94LL | baz().await 95 | ^^^^^ 96 97error: this `MutexGuard` is held across an `await` point 98 --> $DIR/await_holding_lock.rs:109:13 99 | 100LL | let guard = x.read(); 101 | ^^^^^ 102 | 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 105 --> $DIR/await_holding_lock.rs:111:15 106 | 107LL | baz().await 108 | ^^^^^ 109 110error: this `MutexGuard` is held across an `await` point 111 --> $DIR/await_holding_lock.rs:115:13 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 118 --> $DIR/await_holding_lock.rs:117:15 119 | 120LL | baz().await 121 | ^^^^^ 122 123error: this `MutexGuard` is held across an `await` point 124 --> $DIR/await_holding_lock.rs:137:13 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 131 --> $DIR/await_holding_lock.rs:140:28 132 | 133LL | let second = baz().await; 134 | ^^^^^ 135LL | 136LL | let third = baz().await; 137 | ^^^^^ 138 139error: this `MutexGuard` is held across an `await` point 140 --> $DIR/await_holding_lock.rs:151:17 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 147 --> $DIR/await_holding_lock.rs:153:19 148 | 149LL | baz().await 150 | ^^^^^ 151 152error: this `MutexGuard` is held across an `await` point 153 --> $DIR/await_holding_lock.rs:164:17 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 160 --> $DIR/await_holding_lock.rs:166:19 161 | 162LL | baz().await 163 | ^^^^^ 164 165error: this `MutexGuard` is held across an `await` point 166 --> $DIR/await_holding_lock.rs:185:9 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 173 --> $DIR/await_holding_lock.rs:189:11 174 | 175LL | baz().await; 176 | ^^^^^ 177 178error: aborting due to 13 previous errors 179