From 799db66a84834c403860df4a8c0227d8fb7f9d9d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 22 Sep 2023 19:12:35 -0700 Subject: [PATCH] Update ui test suite to nightly-2023-09-23 --- tests/ui/consider-restricting.stderr | 4 ++-- tests/ui/send-not-implemented.stderr | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ui/consider-restricting.stderr b/tests/ui/consider-restricting.stderr index 251168b..66e9637 100644 --- a/tests/ui/consider-restricting.stderr +++ b/tests/ui/consider-restricting.stderr @@ -9,7 +9,7 @@ note: captured value is not `Send` | 16 | async fn publish(&self, url: T) {} | ^^^ has type `T` which is not `Send` - = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>` + = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>` help: consider further restricting this bound | 16 | async fn publish(&self, url: T) {} @@ -26,7 +26,7 @@ note: captured value is not `Send` | 23 | async fn publish(&self, url: T) {} | ^^^ has type `T` which is not `Send` - = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>` + = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>` help: consider further restricting this bound | 23 | async fn publish(&self, url: T) {} diff --git a/tests/ui/send-not-implemented.stderr b/tests/ui/send-not-implemented.stderr index 2710276..cedc1aa 100644 --- a/tests/ui/send-not-implemented.stderr +++ b/tests/ui/send-not-implemented.stderr @@ -9,7 +9,7 @@ error: future cannot be sent between threads safely 12 | | } | |_____^ 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<'_, ()>` + = 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:13 | @@ -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 `Pin>` to `Pin + Send + 'async_trait)>>` + = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>` error: future cannot be sent between threads safely --> tests/ui/send-not-implemented.rs:14:38 @@ -33,7 +33,7 @@ error: future cannot be sent between threads safely 19 | | } | |_____^ 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<'_, ()>` + = 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:13 | @@ -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 `Pin>` to `Pin + Send + 'async_trait)>>` + = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>`