From c0f1e53226abaf80ce4d6e4196437180c34209e7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 1 May 2023 20:46:20 -0700 Subject: [PATCH] Update ui test suite to nightly-2023-05-02 --- tests/ui/send-not-implemented.stderr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ui/send-not-implemented.stderr b/tests/ui/send-not-implemented.stderr index d68fc43..b0bf9b9 100644 --- a/tests/ui/send-not-implemented.stderr +++ b/tests/ui/send-not-implemented.stderr @@ -11,12 +11,12 @@ error: future cannot be sent between threads safely | = 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 + --> tests/ui/send-not-implemented.rs:11:13 | 10 | let _guard = mutex.lock().unwrap(); | ------ has type `MutexGuard<'_, ()>` which is not `Send` 11 | f().await; - | ^^^^^^ await occurs here, with `_guard` maybe used later + | ^^^^^ 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` @@ -35,12 +35,12 @@ error: future cannot be sent between threads safely | = 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 + --> tests/ui/send-not-implemented.rs:17:13 | 16 | let _guard = mutex.lock().unwrap(); | ------ has type `MutexGuard<'_, ()>` which is not `Send` 17 | f().await; - | ^^^^^^ await occurs here, with `_guard` maybe used later + | ^^^^^ await occurs here, with `_guard` maybe used later 18 | true 19 | } | - `_guard` is later dropped here