@@ -6,22 +6,22 @@ LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
66 |
77 = note: `-D clippy::future-not-send` implied by `-D warnings`
88note: future is not `Send` as this value is used across an await
9- --> $DIR/future_not_send.rs:8:5
9+ --> $DIR/future_not_send.rs:8:19
1010 |
1111LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
1212 | -- has type `std::rc::Rc<[u8]>` which is not `Send`
1313LL | async { true }.await
14- | ^^^^^^^^^^^^^^ ^^^^^^ await occurs here, with `rc` maybe used later
14+ | ^^^^^^ await occurs here, with `rc` maybe used later
1515LL | }
1616 | - `rc` is later dropped here
1717 = note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
1818note: future is not `Send` as this value is used across an await
19- --> $DIR/future_not_send.rs:8:5
19+ --> $DIR/future_not_send.rs:8:19
2020 |
2121LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
2222 | ---- has type `&std::cell::Cell<usize>` which is not `Send`
2323LL | async { true }.await
24- | ^^^^^^^^^^^^^^ ^^^^^^ await occurs here, with `cell` maybe used later
24+ | ^^^^^^ await occurs here, with `cell` maybe used later
2525LL | }
2626 | - `cell` is later dropped here
2727 = 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:5
36+ --> $DIR/future_not_send.rs:12:19
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:9
85+ --> $DIR/future_not_send.rs:35:23
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:9
103+ --> $DIR/future_not_send.rs:40:30
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:5
120+ --> $DIR/future_not_send.rs:54:19
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