diff options
| author | chaz-kiker <chaz-kiker@lambdastudents.com> | 2021-07-23 12:30:52 -0500 |
|---|---|---|
| committer | chaz-kiker <chaz-kiker@lambdastudents.com> | 2021-07-23 12:55:13 -0500 |
| commit | a1518f091552afdf370c699a359af0b7d34e402d (patch) | |
| tree | 84ddb94e76059e59dfa62d5cc06c06347f25a5a8 | |
| parent | 831ac196398c2dec18cdfb2299d465f64ec05223 (diff) | |
| download | rust-a1518f091552afdf370c699a359af0b7d34e402d.tar.gz rust-a1518f091552afdf370c699a359af0b7d34e402d.zip | |
update clippy ui test 'future_not_send.stderr' to match
the new diagnostic messages
| -rw-r--r-- | src/tools/clippy/tests/ui/future_not_send.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/future_not_send.stderr b/src/tools/clippy/tests/ui/future_not_send.stderr index b59dbb3e76c..c734051ccf3 100644 --- a/src/tools/clippy/tests/ui/future_not_send.stderr +++ b/src/tools/clippy/tests/ui/future_not_send.stderr @@ -55,11 +55,11 @@ note: captured value is not `Send` LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool { | ^^ has type `std::rc::Rc<[u8]>` which is not `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 | 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` error: future cannot be sent between threads safely |
