-
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
Updates to edition handling. #9184
Commits on Feb 18, 2021
-
Some minor refactoring of
fix
code.There shouldn't be any functional changes here. * Some doc comments. * Construct `FixArgs` at once so it doesn't need to bother with unnecessary Options. * Remove IdiomEditionMismatch, it is not used. * Use a general deduping mechanism for fix messages.
Configuration menu - View commit details
-
Copy full SHA for b3d865e - Browse repository at this point
Copy the full SHA b3d865eView commit details -
Change Fixing to Fixed, and add a verbose "Fixing".
What was previously "Fixing" was a message for after the fixes had been applied. I think it would be clearer if it said "Fixed", to indicate that the fixes had actually finished. The new "Fixing" is posted just before it starts. This is verbose-only since it is a little noisy.
Configuration menu - View commit details
-
Copy full SHA for 820537c - Browse repository at this point
Copy the full SHA 820537cView commit details -
Add a migrating message for
cargo fix --edition
.This helps indicate which edition you are moving from and to.
Configuration menu - View commit details
-
Copy full SHA for 3f2f7e3 - Browse repository at this point
Copy the full SHA 3f2f7e3View commit details -
Add edition2021 cargo feature.
This is intended to help make it easier to test the 2021 edition.
Configuration menu - View commit details
-
Copy full SHA for 2ae72ff - Browse repository at this point
Copy the full SHA 2ae72ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37f4ff9 - Browse repository at this point
Copy the full SHA 37f4ff9View commit details -
Updates to
cargo fix --edition
.* `--edition` always means "next" edition. * `--edition` when on the most recent edition is not an error, just a warning. * Support fix to 2021 edition.
Configuration menu - View commit details
-
Copy full SHA for 2885022 - Browse repository at this point
Copy the full SHA 2885022View commit details -
Update
cargo fix --edition
docs.# Conflicts: # src/cargo/ops/fix.rs # src/doc/src/reference/unstable.md
Configuration menu - View commit details
-
Copy full SHA for 21cfac6 - Browse repository at this point
Copy the full SHA 21cfac6View commit details
Commits on Feb 19, 2021
-
Make edition transitions easier.
This attempts to centralize all the edition stuff in one place (the `Edition` enum) so that adding a new edition or stabilizing one should be relatively little work (and more importantly, we don't miss things). Importantly, this changes `cargo new` to default to the latest stable. It also changes the `cargo fix --edition-idiom` behavior to only apply idioms for the *current* edition.
Configuration menu - View commit details
-
Copy full SHA for aa61976 - Browse repository at this point
Copy the full SHA aa61976View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15513ce - Browse repository at this point
Copy the full SHA 15513ceView commit details -
cargo fix
: Remove --prepare-for option.This was deprecated, never officially part of the stable release.
Configuration menu - View commit details
-
Copy full SHA for c303213 - Browse repository at this point
Copy the full SHA c303213View commit details -
Change how workspace resolve behavior is calculated.
This fixes an issue where warnings would be printed for packages migrating to 2021 in a workspace (that the "resolver" field is ignored, which is wrong). This also places the default resolver logic in one place, and should make it easier to update later.
Configuration menu - View commit details
-
Copy full SHA for a82a23c - Browse repository at this point
Copy the full SHA a82a23cView commit details