Skip to content

Commit 98a3dfc

Browse files
committed
attributes: update async_instrument error text for Rust 1.66
The error message suggesting that you remove a semicolon to return a value (instead of unit) was updated slightly in rust-lang/rust#102650, which was included in Rust 1.66.0. This causes one of the tests in tracing-attributes to fail. We fix it by using the updated error message.
1 parent 02903cb commit 98a3dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing-attributes/tests/ui/async_instrument.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ error[E0308]: mismatched types
9393
42 | async fn extra_semicolon() -> i32 {
9494
| ___________________________________^
9595
43 | | 1;
96-
| | - help: remove this semicolon
96+
| | - help: remove this semicolon to return this value
9797
44 | | }
9898
| |_^ expected `i32`, found `()`

0 commit comments

Comments
 (0)