@@ -5,22 +5,22 @@ LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
55 | ^^^^ future returned by `private_future` is not `Send`
66 |
77note: future is not `Send` as this value is used across an await
8- --> $DIR/future_not_send.rs:8:19
8+ --> $DIR/future_not_send.rs:8:20
99 |
1010LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
1111 | -- has type `std::rc::Rc<[u8]>` which is not `Send`
1212LL | async { true }.await
13- | ^ ^^^^^ await occurs here, with `rc` maybe used later
13+ | ^^^^^ await occurs here, with `rc` maybe used later
1414LL | }
1515 | - `rc` is later dropped here
1616 = note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
1717note: future is not `Send` as this value is used across an await
18- --> $DIR/future_not_send.rs:8:19
18+ --> $DIR/future_not_send.rs:8:20
1919 |
2020LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
2121 | ---- has type `&std::cell::Cell<usize>` which is not `Send`
2222LL | async { true }.await
23- | ^ ^^^^^ await occurs here, with `cell` maybe used later
23+ | ^^^^^ await occurs here, with `cell` maybe used later
2424LL | }
2525 | - `cell` is later dropped here
2626 = note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
@@ -33,12 +33,12 @@ LL | pub async fn public_future(rc: Rc<[u8]>) {
3333 | ^ future returned by `public_future` is not `Send`
3434 |
3535note: future is not `Send` as this value is used across an await
36- --> $DIR/future_not_send.rs:12:19
36+ --> $DIR/future_not_send.rs:12:20
3737 |
3838LL | pub async fn public_future(rc: Rc<[u8]>) {
3939 | -- has type `std::rc::Rc<[u8]>` which is not `Send`
4040LL | async { true }.await;
41- | ^ ^^^^^ await occurs here, with `rc` maybe used later
41+ | ^^^^^ await occurs here, with `rc` maybe used later
4242LL | }
4343 | - `rc` is later dropped here
4444 = note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
@@ -82,12 +82,12 @@ LL | async fn private_future(&self) -> usize {
8282 | ^^^^^ future returned by `private_future` is not `Send`
8383 |
8484note: future is not `Send` as this value is used across an await
85- --> $DIR/future_not_send.rs:35:23
85+ --> $DIR/future_not_send.rs:35:24
8686 |
8787LL | async fn private_future(&self) -> usize {
8888 | ----- has type `&Dummy` which is not `Send`
8989LL | async { true }.await;
90- | ^ ^^^^^ await occurs here, with `&self` maybe used later
90+ | ^^^^^ await occurs here, with `&self` maybe used later
9191LL | self.rc.len()
9292LL | }
9393 | - `&self` is later dropped here
@@ -100,12 +100,12 @@ LL | pub async fn public_future(&self) {
100100 | ^ future returned by `public_future` is not `Send`
101101 |
102102note: future is not `Send` as this value is used across an await
103- --> $DIR/future_not_send.rs:40:30
103+ --> $DIR/future_not_send.rs:40:31
104104 |
105105LL | pub async fn public_future(&self) {
106106 | ----- has type `&Dummy` which is not `Send`
107107LL | self.private_future().await;
108- | ^ ^^^^^ await occurs here, with `&self` maybe used later
108+ | ^^^^^ await occurs here, with `&self` maybe used later
109109LL | }
110110 | - `&self` is later dropped here
111111 = note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Sync`
@@ -117,12 +117,12 @@ LL | async fn generic_future<T>(t: T) -> T
117117 | ^ future returned by `generic_future` is not `Send`
118118 |
119119note: future is not `Send` as this value is used across an await
120- --> $DIR/future_not_send.rs:54:19
120+ --> $DIR/future_not_send.rs:54:20
121121 |
122122LL | let rt = &t;
123123 | -- has type `&T` which is not `Send`
124124LL | async { true }.await;
125- | ^ ^^^^^ await occurs here, with `rt` maybe used later
125+ | ^^^^^ await occurs here, with `rt` maybe used later
126126LL | t
127127LL | }
128128 | - `rt` is later dropped here
0 commit comments