Skip to content

Commit 9c880e8

Browse files
committed
Update ui test suite to nightly-2025-07-30
1 parent 7ca751d commit 9c880e8

7 files changed

+14
-14
lines changed

tests/ui/delimiter-span.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: no rules expected `{`
22
--> tests/ui/delimiter-span.rs:19:16
33
|
4-
5 | macro_rules! picky {
4+
5 | macro_rules! picky {
55
| ------------------ when calling this macro
66
...
77
19 | picky!({ 123, self });
@@ -12,7 +12,7 @@ error: no rules expected `{`
1212
error: no rules expected `{`
1313
--> tests/ui/delimiter-span.rs:20:16
1414
|
15-
5 | macro_rules! picky {
15+
5 | macro_rules! picky {
1616
| ------------------ when calling this macro
1717
...
1818
20 | picky!({ 123 });

tests/ui/missing-async-in-impl.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0195]: lifetime parameters or bounds on associated function `method` do not match the trait declaration
22
--> tests/ui/missing-async-in-impl.rs:12:14
33
|
4-
5 | async fn method();
4+
5 | async fn method();
55
| -------- lifetimes in impl do not match this associated function in trait
66
...
77
12 | fn method() {}

tests/ui/missing-async-in-trait.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0195]: lifetime parameters or bounds on associated function `method` do not match the trait declaration
22
--> tests/ui/missing-async-in-trait.rs:12:14
33
|
4-
5 | fn method();
4+
5 | fn method();
55
| - lifetimes in impl do not match this associated function in trait
66
...
77
12 | async fn method() {}

tests/ui/must-use.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error: unused pinned boxed `Future` trait object that must be used
88
note: the lint level is defined here
99
--> tests/ui/must-use.rs:1:9
1010
|
11-
1 | #![deny(unused_must_use)]
11+
1 | #![deny(unused_must_use)]
1212
| ^^^^^^^^^^^^^^^
1313

1414
error: unused return value of `Interface::f` that must be used

tests/ui/no-attribute-macro.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
88
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
99
--> tests/ui/no-attribute-macro.rs:2:14
1010
|
11-
1 | pub trait Trait {
11+
1 | pub trait Trait {
1212
| ----- this trait is not dyn compatible...
13-
2 | async fn method(&self);
13+
2 | async fn method(&self);
1414
| ^^^^^^ ...because method `method` is `async`
1515
= help: consider moving `method` to another trait
1616
= help: only type `Struct` implements `Trait` within this crate; consider using it directly instead.

tests/ui/send-not-implemented.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
error: future cannot be sent between threads safely
22
--> tests/ui/send-not-implemented.rs:8:26
33
|
4-
8 | async fn test(&self) {
4+
8 | async fn test(&self) {
55
| __________________________^
6-
9 | | let mutex = Mutex::new(());
6+
9 | | let mutex = Mutex::new(());
77
10 | | let _guard = mutex.lock().unwrap();
88
11 | | f().await;
99
12 | | }
1010
| |_____^ future created by async block is not `Send`
1111
|
12-
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}`, 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 `std::sync::MutexGuard<'_, ()>`
1313
note: future is not `Send` as this value is used across an await
1414
--> tests/ui/send-not-implemented.rs:11:13
1515
|
1616
10 | let _guard = mutex.lock().unwrap();
17-
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
17+
| ------ has type `std::sync::MutexGuard<'_, ()>` which is not `Send`
1818
11 | f().await;
1919
| ^^^^^ await occurs here, with `_guard` maybe used later
2020
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}>>` to `Pin<Box<dyn Future<Output = ()> + Send>>`
@@ -31,12 +31,12 @@ error: future cannot be sent between threads safely
3131
19 | | }
3232
| |_____^ future created by async block is not `Send`
3333
|
34-
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
34+
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}`, the trait `Send` is not implemented for `std::sync::MutexGuard<'_, ()>`
3535
note: future is not `Send` as this value is used across an await
3636
--> tests/ui/send-not-implemented.rs:17:13
3737
|
3838
16 | let _guard = mutex.lock().unwrap();
39-
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
39+
| ------ has type `std::sync::MutexGuard<'_, ()>` which is not `Send`
4040
17 | f().await;
4141
| ^^^^^ await occurs here, with `_guard` maybe used later
4242
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}>>` to `Pin<Box<dyn Future<Output = bool> + Send>>`

tests/ui/unreachable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ error: unreachable statement
99
note: the lint level is defined here
1010
--> tests/ui/unreachable.rs:1:9
1111
|
12-
1 | #![deny(warnings)]
12+
1 | #![deny(warnings)]
1313
| ^^^^^^^^
1414
= note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]`

0 commit comments

Comments
 (0)