@@ -23,10 +23,10 @@ LL | async fn private_future(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
23
23
= help: to override `-D warnings` add `#[allow(clippy::future_not_send)]`
24
24
25
25
error: future cannot be sent between threads safely
26
- --> $DIR/future_not_send.rs:12:42
26
+ --> $DIR/future_not_send.rs:12:41
27
27
|
28
28
LL | pub async fn public_future(rc: Rc<[u8]>) {
29
- | ^ future returned by `public_future` is not `Send`
29
+ | ^ future returned by `public_future` is not `Send`
30
30
|
31
31
note: future is not `Send` as this value is used across an await
32
32
--> $DIR/future_not_send.rs:14:20
@@ -58,10 +58,10 @@ LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
58
58
= note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
59
59
60
60
error: future cannot be sent between threads safely
61
- --> $DIR/future_not_send.rs:26:43
61
+ --> $DIR/future_not_send.rs:26:42
62
62
|
63
63
LL | pub async fn public_future2(rc: Rc<[u8]>) {}
64
- | ^ future returned by `public_future2` is not `Send`
64
+ | ^ future returned by `public_future2` is not `Send`
65
65
|
66
66
note: captured value is not `Send`
67
67
--> $DIR/future_not_send.rs:26:29
@@ -87,10 +87,10 @@ LL | async { true }.await;
87
87
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Sync`
88
88
89
89
error: future cannot be sent between threads safely
90
- --> $DIR/future_not_send.rs:44:39
90
+ --> $DIR/future_not_send.rs:44:38
91
91
|
92
92
LL | pub async fn public_future(&self) {
93
- | ^ future returned by `public_future` is not `Send`
93
+ | ^ future returned by `public_future` is not `Send`
94
94
|
95
95
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
96
96
--> $DIR/future_not_send.rs:44:32
@@ -115,10 +115,10 @@ LL | async { true }.await;
115
115
= note: `T` doesn't implement `std::marker::Sync`
116
116
117
117
error: future cannot be sent between threads safely
118
- --> $DIR/future_not_send.rs:73:34
118
+ --> $DIR/future_not_send.rs:73:33
119
119
|
120
120
LL | async fn unclear_future<T>(t: T) {}
121
- | ^ future returned by `unclear_future` is not `Send`
121
+ | ^ future returned by `unclear_future` is not `Send`
122
122
|
123
123
note: captured value is not `Send`
124
124
--> $DIR/future_not_send.rs:73:28
0 commit comments