Skip to content

Commit

Permalink
Update ui test suite to nightly-2023-08-10
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 10, 2023
1 parent 47565d9 commit 7d4e192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/consider-restricting.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ error: future cannot be sent between threads safely
16 | async fn publish<T: IntoUrl>(&self, url: T) {}
| ^^ future created by async block is not `Send`
|
= note: consider using `std::sync::Arc<T>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
note: captured value is not `Send`
--> tests/ui/consider-restricting.rs:16:41
|
Expand All @@ -21,6 +22,7 @@ error: future cannot be sent between threads safely
23 | async fn publish<T>(&self, url: T) {}
| ^^ future created by async block is not `Send`
|
= note: consider using `std::sync::Arc<T>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
note: captured value is not `Send`
--> tests/ui/consider-restricting.rs:23:32
|
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/send-not-implemented.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ error: future cannot be sent between threads safely
| |_____^ future created by async block is not `Send`
|
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
= note: consider using `std::sync::Arc<MutexGuard<'_, ()>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
note: future is not `Send` as this value is used across an await
--> tests/ui/send-not-implemented.rs:11:13
|
Expand All @@ -34,6 +35,7 @@ error: future cannot be sent between threads safely
| |_____^ future created by async block is not `Send`
|
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
= note: consider using `std::sync::Arc<MutexGuard<'_, ()>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
note: future is not `Send` as this value is used across an await
--> tests/ui/send-not-implemented.rs:17:13
|
Expand Down

0 comments on commit 7d4e192

Please sign in to comment.