update clippy ui test 'future_not_send.stderr' to match
the new diagnostic messages
This commit is contained in:
parent
831ac19639
commit
a1518f0915
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ note: captured value is not `Send`
|
||||||
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
|
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
|
||||||
| ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
|
| ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
|
||||||
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
|
= note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
|
||||||
note: captured value is not `Send`
|
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
|
||||||
--> $DIR/future_not_send.rs:20:40
|
--> $DIR/future_not_send.rs:20:40
|
||||||
|
|
|
|
||||||
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
|
LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
|
||||||
| ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`
|
| ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`, because `std::cell::Cell<usize>` is not `Sync`
|
||||||
= note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
|
= note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
|
||||||
|
|
||||||
error: future cannot be sent between threads safely
|
error: future cannot be sent between threads safely
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue