about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/async-await/issue-70935-complex-spans.stderr11
-rw-r--r--src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.stderr9
2 files changed, 4 insertions, 16 deletions
diff --git a/src/test/ui/async-await/issue-70935-complex-spans.stderr b/src/test/ui/async-await/issue-70935-complex-spans.stderr
index c55f8abc42d..6b599b5d603 100644
--- a/src/test/ui/async-await/issue-70935-complex-spans.stderr
+++ b/src/test/ui/async-await/issue-70935-complex-spans.stderr
@@ -11,15 +11,8 @@ note: future is not `Send` as this value is used across an await
 LL | /         baz(|| async{
 LL | |             foo(tx.clone());
 LL | |         }).await;
-   | |________________^
-note: first, await occurs here, with the value maybe used later
-  --> $DIR/issue-70935-complex-spans.rs:13:9
-   |
-LL | /         baz(|| async{
-LL | |             foo(tx.clone());
-LL | |         }).await;
-   | |________________^
-note: ...but, the value is later dropped here
+   | |________________^ first, await occurs here, with the value maybe used later...
+note: the value is later dropped here
   --> $DIR/issue-70935-complex-spans.rs:15:17
    |
 LL |         }).await;
diff --git a/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.stderr b/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.stderr
index 6ffbcd7ea65..9d3b10c8663 100644
--- a/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.stderr
+++ b/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.stderr
@@ -12,13 +12,8 @@ note: future is not `Send` as this value is used across an await
   --> $DIR/issue-65436-raw-ptr-not-send.rs:14:9
    |
 LL |         bar(Foo(std::ptr::null())).await;
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-note: first, await occurs here, with `std::ptr::null()` maybe used later
-  --> $DIR/issue-65436-raw-ptr-not-send.rs:14:9
-   |
-LL |         bar(Foo(std::ptr::null())).await;
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-note: ...but, `std::ptr::null()` is later dropped here
+   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ first, await occurs here, with `std::ptr::null()` maybe used later...
+note: `std::ptr::null()` is later dropped here
   --> $DIR/issue-65436-raw-ptr-not-send.rs:14:41
    |
 LL |         bar(Foo(std::ptr::null())).await;