Skip to content

Commit

Permalink
attributes: update async_instrument error text for 1.66
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hds committed Dec 27, 2022
1 parent 02903cb commit 2c0bff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-attributes/tests/ui/async_instrument.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ error[E0308]: mismatched types
42 | async fn extra_semicolon() -> i32 {
| ___________________________________^
43 | | 1;
| | - help: remove this semicolon
| | - help: remove this semicolon to return this value
44 | | }
| |_^ expected `i32`, found `()`

0 comments on commit 2c0bff5

Please sign in to comment.