Skip to content

Commit a1518f0

Browse files
committed
update clippy ui test 'future_not_send.stderr' to match
the new diagnostic messages
1 parent 831ac19 commit a1518f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/clippy/tests/ui/future_not_send.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ note: captured value is not `Send`
5555
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
5656
| ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
5757
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
58-
note: captured value is not `Send`
58+
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
5959
--> $DIR/future_not_send.rs:20:40
6060
|
6161
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
62-
| ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`
62+
| ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`, because `std::cell::Cell<usize>` is not `Sync`
6363
= note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
6464

6565
error: future cannot be sent between threads safely

0 commit comments

Comments
 (0)