-
-
Notifications
You must be signed in to change notification settings - Fork 41
Fix Rust Edition 2024 compatibility issues #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Rust Edition 2024 compatibility issues #512
Conversation
510d2ac
to
3a3a528
Compare
@Serial-ATA What about the failing Style check that seems to be unrelated? |
30e1175
to
6f5147d
Compare
f483046
to
6f5147d
Compare
I was able to format it on my end. CI uses the latest stable, maybe yours is out of date if you don't see the same formatting? |
# Opt-in to new drop order of Edition 2024. | ||
# TODO: Remove if no longer needed. | ||
tail_expr_drop_order = "allow" | ||
if_let_rescope = "allow" | ||
|
||
# TODO: Remove after switching to Edition 2024. | ||
edition_2024_expr_fragment_specifier = "allow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Only after switching to edition = "2024
both if_let_rescope
and edition_2024_expr_fragment_specifier
will probably become obsolete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can bump to 2024 edition in this PR if you want. I don't think it's a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to Edition 2024 requires to reformat many source files.
I will prepare an intermediate step with some workspace cleanup as part of this PR. Switching editions should be done separately.
I forgot to run I am used to |
Thanks! |
No description provided.