2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:6:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::await-holding-refcell-ref` implied by `-D warnings`
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:6:5
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:11:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow_mut();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:11:5
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow_mut();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:32:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow_mut();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:32:5
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow_mut();
|
|
|
|
LL | |
|
|
|
|
LL | | let second = baz().await;
|
|
|
|
LL | |
|
|
|
|
... |
|
|
|
|
LL | | first + second + third
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:44:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow_mut();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:44:5
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow_mut();
|
|
|
|
LL | |
|
|
|
|
LL | | let second = baz().await;
|
|
|
|
LL | |
|
|
|
|
... |
|
|
|
|
LL | | first + second + third
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:59:13
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow_mut();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:59:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow_mut();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | };
|
|
|
|
| |_____^
|
|
|
|
|
2021-02-24 14:02:51 +01:00
|
|
|
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:71:13
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | let b = x.borrow_mut();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: these are all the await points this ref is held through
|
2021-10-23 09:42:52 +02:00
|
|
|
--> $DIR/await_holding_refcell_ref.rs:71:9
|
2020-10-19 12:07:04 -04:00
|
|
|
|
|
|
|
|
LL | / let b = x.borrow_mut();
|
|
|
|
LL | | baz().await
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|