1 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
2 --> $DIR/await_holding_invalid.rs:8:9
4 LL | let guard = x.lock().unwrap();
7 = note: `-D clippy::await-holding-lock` implied by `-D warnings`
8 note: these are all the await points this lock is held through
9 --> $DIR/await_holding_invalid.rs:8:5
11 LL | / let guard = x.lock().unwrap();
16 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
17 --> $DIR/await_holding_invalid.rs:29:9
19 LL | let guard = x.lock().unwrap();
22 note: these are all the await points this lock is held through
23 --> $DIR/await_holding_invalid.rs:29:5
25 LL | / let guard = x.lock().unwrap();
27 LL | | let second = baz().await;
30 LL | | first + second + third
34 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
35 --> $DIR/await_holding_invalid.rs:42:13
37 LL | let guard = x.lock().unwrap();
40 note: these are all the await points this lock is held through
41 --> $DIR/await_holding_invalid.rs:42:9
43 LL | / let guard = x.lock().unwrap();
48 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
49 --> $DIR/await_holding_invalid.rs:54:13
51 LL | let guard = x.lock().unwrap();
54 note: these are all the await points this lock is held through
55 --> $DIR/await_holding_invalid.rs:54:9
57 LL | / let guard = x.lock().unwrap();
62 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
63 --> $DIR/await_holding_invalid.rs:60:9
65 LL | let b = x.borrow();
68 = note: `-D clippy::await-holding-refcell-ref` implied by `-D warnings`
69 note: these are all the await points this ref is held through
70 --> $DIR/await_holding_invalid.rs:60:5
72 LL | / let b = x.borrow();
77 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
78 --> $DIR/await_holding_invalid.rs:65:9
80 LL | let b = x.borrow_mut();
83 note: these are all the await points this ref is held through
84 --> $DIR/await_holding_invalid.rs:65:5
86 LL | / let b = x.borrow_mut();
91 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
92 --> $DIR/await_holding_invalid.rs:82:9
94 LL | let b = x.borrow_mut();
97 note: these are all the await points this ref is held through
98 --> $DIR/await_holding_invalid.rs:82:5
100 LL | / let b = x.borrow_mut();
102 LL | | let second = baz().await;
105 LL | | first + second + third
109 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
110 --> $DIR/await_holding_invalid.rs:94:9
112 LL | let b = x.borrow_mut();
115 note: these are all the await points this ref is held through
116 --> $DIR/await_holding_invalid.rs:94:5
118 LL | / let b = x.borrow_mut();
120 LL | | let second = baz().await;
123 LL | | first + second + third
127 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
128 --> $DIR/await_holding_invalid.rs:109:13
130 LL | let b = x.borrow_mut();
133 note: these are all the await points this ref is held through
134 --> $DIR/await_holding_invalid.rs:109:9
136 LL | / let b = x.borrow_mut();
141 error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
142 --> $DIR/await_holding_invalid.rs:121:13
144 LL | let b = x.borrow_mut();
147 note: these are all the await points this ref is held through
148 --> $DIR/await_holding_invalid.rs:121:9
150 LL | / let b = x.borrow_mut();
155 error: aborting due to 10 previous errors