Skip to content

Commit 2db7f1a

Browse files
committed
Update future-not-send stderr output
1 parent ecd0a67 commit 2db7f1a

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

tests/ui/future_not_send.stderr

+23-3
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,32 @@ error: future cannot be sent between threads safely
4747
--> $DIR/future_not_send.rs:20:63
4848
|
4949
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
50-
| ^^^^
50+
| ^^^^ future returned by `private_future2` is not `Send`
5151
|
52+
note: captured value is not `Send`
53+
--> $DIR/future_not_send.rs:20:26
54+
|
55+
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
56+
| ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
5257
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
58+
note: captured value is not `Send`
59+
--> $DIR/future_not_send.rs:20:40
60+
|
61+
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
62+
| ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`
5363
= note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
5464

5565
error: future cannot be sent between threads safely
5666
--> $DIR/future_not_send.rs:24:43
5767
|
5868
LL | pub async fn public_future2(rc: Rc<[u8]>) {}
59-
| ^
69+
| ^ future returned by `public_future2` is not `Send`
6070
|
71+
note: captured value is not `Send`
72+
--> $DIR/future_not_send.rs:24:29
73+
|
74+
LL | pub async fn public_future2(rc: Rc<[u8]>) {}
75+
| ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
6176
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
6277

6378
error: future cannot be sent between threads safely
@@ -117,8 +132,13 @@ error: future cannot be sent between threads safely
117132
--> $DIR/future_not_send.rs:66:34
118133
|
119134
LL | async fn unclear_future<T>(t: T) {}
120-
| ^
135+
| ^ future returned by `unclear_future` is not `Send`
121136
|
137+
note: captured value is not `Send`
138+
--> $DIR/future_not_send.rs:66:28
139+
|
140+
LL | async fn unclear_future<T>(t: T) {}
141+
| ^ has type `T` which is not `Send`
122142
= note: `T` doesn't implement `std::marker::Send`
123143

124144
error: aborting due to 8 previous errors

0 commit comments

Comments
 (0)