Skip to content

Commit

Permalink
Update ui test suite to nightly-2022-11-28
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 28, 2022
1 parent a2a8184 commit 4bcf6d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/ui/consider-restricting.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ note: captured value is not `Send`
|
16 | async fn publish<T: IntoUrl>(&self, url: T) {}
| ^^^ has type `T` which is not `Send`
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51]` to the object type `dyn Future<Output = ()> + Send`
help: consider further restricting this bound
|
16 | async fn publish<T: IntoUrl + std::marker::Send>(&self, url: T) {}
Expand All @@ -26,7 +26,7 @@ note: captured value is not `Send`
|
23 | async fn publish<T>(&self, url: T) {}
| ^^^ has type `T` which is not `Send`
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42]` to the object type `dyn Future<Output = ()> + Send`
help: consider further restricting this bound
|
23 | async fn publish<T + std::marker::Send>(&self, url: T) {}
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/send-not-implemented.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ error: future cannot be sent between threads safely
12 | | }
| |_____^ future created by async block is not `Send`
|
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
note: future is not `Send` as this value is used across an await
--> tests/ui/send-not-implemented.rs:11:12
|
Expand All @@ -19,7 +19,7 @@ note: future is not `Send` as this value is used across an await
| ^^^^^^ await occurs here, with `_guard` maybe used later
12 | }
| - `_guard` is later dropped here
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
= note: required for the cast from `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]` to the object type `dyn Future<Output = ()> + Send`

error: future cannot be sent between threads safely
--> tests/ui/send-not-implemented.rs:14:38
Expand All @@ -33,7 +33,7 @@ error: future cannot be sent between threads safely
19 | | }
| |_____^ future created by async block is not `Send`
|
= help: within `impl Future<Output = bool>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
note: future is not `Send` as this value is used across an await
--> tests/ui/send-not-implemented.rs:17:12
|
Expand All @@ -44,4 +44,4 @@ note: future is not `Send` as this value is used across an await
18 | true
19 | }
| - `_guard` is later dropped here
= note: required for the cast from `impl Future<Output = bool>` to the object type `dyn Future<Output = bool> + Send`
= note: required for the cast from `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]` to the object type `dyn Future<Output = bool> + Send`

0 comments on commit 4bcf6d7

Please sign in to comment.