Skip to content

Commit 4bcf6d7

Browse files
committed
Update ui test suite to nightly-2022-11-28
1 parent a2a8184 commit 4bcf6d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/ui/consider-restricting.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: captured value is not `Send`
99
|
1010
16 | async fn publish<T: IntoUrl>(&self, url: T) {}
1111
| ^^^ has type `T` which is not `Send`
12-
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
12+
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51]` to the object type `dyn Future<Output = ()> + Send`
1313
help: consider further restricting this bound
1414
|
1515
16 | async fn publish<T: IntoUrl + std::marker::Send>(&self, url: T) {}
@@ -26,7 +26,7 @@ note: captured value is not `Send`
2626
|
2727
23 | async fn publish<T>(&self, url: T) {}
2828
| ^^^ has type `T` which is not `Send`
29-
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
29+
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42]` to the object type `dyn Future<Output = ()> + Send`
3030
help: consider further restricting this bound
3131
|
3232
23 | async fn publish<T + std::marker::Send>(&self, url: T) {}

tests/ui/send-not-implemented.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ error: future cannot be sent between threads safely
99
12 | | }
1010
| |_____^ future created by async block is not `Send`
1111
|
12-
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
12+
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
1313
note: future is not `Send` as this value is used across an await
1414
--> tests/ui/send-not-implemented.rs:11:12
1515
|
@@ -19,7 +19,7 @@ note: future is not `Send` as this value is used across an await
1919
| ^^^^^^ await occurs here, with `_guard` maybe used later
2020
12 | }
2121
| - `_guard` is later dropped here
22-
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
22+
= 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<Output = ()> + Send`
2323

2424
error: future cannot be sent between threads safely
2525
--> tests/ui/send-not-implemented.rs:14:38
@@ -33,7 +33,7 @@ error: future cannot be sent between threads safely
3333
19 | | }
3434
| |_____^ future created by async block is not `Send`
3535
|
36-
= help: within `impl Future<Output = bool>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
36+
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
3737
note: future is not `Send` as this value is used across an await
3838
--> tests/ui/send-not-implemented.rs:17:12
3939
|
@@ -44,4 +44,4 @@ note: future is not `Send` as this value is used across an await
4444
18 | true
4545
19 | }
4646
| - `_guard` is later dropped here
47-
= note: required for the cast from `impl Future<Output = bool>` to the object type `dyn Future<Output = bool> + Send`
47+
= 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<Output = bool> + Send`

0 commit comments

Comments
 (0)