From 49cdc5f276980e667e4aac0840ae302ccc1308f1 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 14 May 2023 09:55:31 +0200 Subject: [PATCH] Update ui test suite to nightly-2023-05-14 --- tests/ui/consider-restricting.stderr | 4 ++-- tests/ui/send-not-implemented.stderr | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ui/consider-restricting.stderr b/tests/ui/consider-restricting.stderr index 62ff894..251168b 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 `[async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51]` to the object type `dyn Future + Send` + = 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 `[async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42]` to the object type `dyn Future + Send` + = 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 b0bf9b9..2710276 100644 --- a/tests/ui/send-not-implemented.stderr +++ b/tests/ui/send-not-implemented.stderr @@ -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 `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]` to the object type `dyn Future + Send` + = 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 @@ -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 `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]` to the object type `dyn Future + Send` + = note: required for the cast from `Pin>` to `Pin + Send + 'async_trait)>>`