-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
gives an unstable error
#9782
Comments
Do we have any expected behavior for opts-in to upgrading to the unstable edition? Like by running |
The alternative solution may look like this:
Hope it's not too overkill. |
I think we would prefer to avoid passing specific values to the edition flag, because it can only supporting going to the "next" edition, and I think that would introduce some unwanted complexity. Generally in this case if there are mixed editions in a workspace, it is encouraged to use I think it would be fine to change the error to a warning, and just ignore the packages that are already on the latest, stable version. That logic would go around here and I think would involve just emitting a Unfortunately, it is probably a little late for that, since 2021 is likely to be stabilized soon, but I think fixing that case is still worthwhile. |
@rustbot claim |
Problem
I want to convert a crate in a workspace from 2015 to 2018 edition. Because another crate in the workspace already uses 2018 edition, cargo tries to convert it to 2021 and gives an error that 2021 is still unstable.
Steps
git clone https://github.com/cloudflare/boring/
cd boring
cargo fix --edition
Possible Solution(s)
Only try to migrate crates to the latest stable edition unless the user explicitly opts-in to upgrading to the unstable edition.
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: