-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Update deps and switch to 2021 edition #715
Conversation
Some errors do appear here: https://github.com/pest-parser/pest/actions/runs/3180773049/jobs/5184774281 even though test pass properly. Digging into it. |
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.
lgtm; I tried to run cargo fix --edition
https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html and no files were changed, so this should be fine as it is.
The semver error looks like the one I mentioned in the third point here:
#705 (comment) because those reported violations on pest_meta
look to be false positives.
@tomtau : I’ve ran it and got no change too. But, panic! is supposed not to be used as-is in 2021 edition. Maybe something slipped through the cracks between documentation and actual code ? |
I don't remember all of the details about editions; will this have any effects on MSRV? |
1.56 brings 2021 edition, and we’re at 1.56.1 according to README.md |
Oh thanks for digging that out, excellent. Then yeah, this is good to go. |
There are some cases where the automated fixes are not applied: https://doc.rust-lang.org/edition-guide/editions/advanced-migrations.html#migrating-macros (macros, features, generated code, plus some fixes are optional, so it needs the |
For the context, previously MSVR was lower than 1.56, hence the edition was only up to 2018: #615 (comment) (but it was later increased to 1.56: #654 ) |
@tomtau : I’ve never put my hands at all into macros to be fair, so that’s out of my league. I’ve just re-run |
cargo bootstrap and build run fine.
Update to 2021 edition.
Update to latest ucd-trie, serde, serde_json, thiserror.