Skip to content

Commit b454fc8

Browse files
committed
Update ui test suite to nightly-2025-08-03
1 parent 9c880e8 commit b454fc8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tests/ui/consider-restricting.stderr

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
warning: unused variable: `url`
2+
--> tests/ui/consider-restricting.rs:16:41
3+
|
4+
16 | async fn publish<T: IntoUrl>(&self, url: T) {}
5+
| ^^^ help: if this is intentional, prefix it with an underscore: `_url`
6+
|
7+
= note: `#[warn(unused_variables)]` on by default
8+
19
error: future cannot be sent between threads safely
210
--> tests/ui/consider-restricting.rs:16:49
311
|
@@ -9,12 +17,18 @@ note: captured value is not `Send`
917
|
1018
16 | async fn publish<T: IntoUrl>(&self, url: T) {}
1119
| ^^^ has type `T` which is not `Send`
12-
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>`
20+
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51}>>` to `Pin<Box<dyn Future<Output = ()> + Send>>`
1321
help: consider further restricting type parameter `T` with trait `Send`
1422
|
1523
16 | async fn publish<T: IntoUrl + std::marker::Send>(&self, url: T) {}
1624
| +++++++++++++++++++
1725

26+
warning: unused variable: `url`
27+
--> tests/ui/consider-restricting.rs:23:32
28+
|
29+
23 | async fn publish<T>(&self, url: T) {}
30+
| ^^^ help: if this is intentional, prefix it with an underscore: `_url`
31+
1832
error: future cannot be sent between threads safely
1933
--> tests/ui/consider-restricting.rs:23:40
2034
|
@@ -26,7 +40,7 @@ note: captured value is not `Send`
2640
|
2741
23 | async fn publish<T>(&self, url: T) {}
2842
| ^^^ has type `T` which is not `Send`
29-
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>`
43+
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42}>>` to `Pin<Box<dyn Future<Output = ()> + Send>>`
3044
help: consider further restricting type parameter `T` with trait `Send`
3145
|
3246
23 | async fn publish<T + std::marker::Send>(&self, url: T) {}

0 commit comments

Comments
 (0)