-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo fix --edition
needs fixing for Rust 2021
#9047
Comments
From the PR linked, I think there's two questions we'll want to answer:
|
Ok we discussed this in the cargo meeting today and our conclusions were basically that This also solves the question about jumping multiple editions because we'll always be moving only one edition at a time. So I think the fix in Cargo will basically be to implement the "what is the next edition" function to return 2021 when the current edition is 2018, and then we'd fix up tests to account for that new behavior. We also figured that the current error of "you're in the latest edition you can't fix further" can probably get turned into a warning. Additionally we may wish to review the output of the command to ensure it's clear what edition is being migrated from and which edition is being migrated to. |
Another thing we discussed is to have |
The job of
cargo fix
is getting more complicated, as it will need to handle fixes between three editions instead of two.See #8922 (comment)
(To be updated later. Just filing this issue to make sure we won't lose track of this.)
The text was updated successfully, but these errors were encountered: