Skip to content

Commit

Permalink
Update ui test suite to nightly-2023-09-24
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 24, 2023
1 parent 5ba643c commit 8737173
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/ui/send-not-implemented.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ note: future is not `Send` as this value is used across an await
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
11 | f().await;
| ^^^^^ await occurs here, with `_guard` maybe used later
12 | }
| - `_guard` is later dropped here
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>`
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}>>` to `Pin<Box<dyn Future<Output = ()> + Send>>`

error: future cannot be sent between threads safely
--> tests/ui/send-not-implemented.rs:14:38
Expand All @@ -41,7 +39,4 @@ note: future is not `Send` as this value is used across an await
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
17 | f().await;
| ^^^^^ await occurs here, with `_guard` maybe used later
18 | true
19 | }
| - `_guard` is later dropped here
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}>>` to `Pin<Box<(dyn Future<Output = bool> + Send + 'async_trait)>>`
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}>>` to `Pin<Box<dyn Future<Output = bool> + Send>>`

0 comments on commit 8737173

Please sign in to comment.