-
Notifications
You must be signed in to change notification settings - Fork 141
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
Enable edition 2018 #365
Enable edition 2018 #365
Conversation
3e2f6e7
to
b15c15d
Compare
900ae8a
to
9bbef67
Compare
I think the MSRV change can go in any order. I would like to get an external contributor #339 PR in first before we address this. That already has ACK from me, but would also like Andrew's ACK(it's a somewhat big change) before we proceed with 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.
ACK 900ae8a
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.
ACK 9bbef67
Sorry, this now conflicts after we got #339 in |
Change the version of bitcoin to the latest 0.28 release.
It seems we have consensus within the rust-bitcoin github organisation on bumping the MSRV to 1.41.1, update CI job and the README to reflect this.
Use `cargo fix --edition` to update the codebase to edition 2018, the only changes made are adding `crate::` prefix to use statements. In addition; do a bunch of manual additions of `crate::`. Includes `integration_test` crate also.
Run `cargo fix --edition-idioms`. This fixes uses of 'extern crate' and also lifetimes that the compiler can infer.
Changes in force push:
|
FTR please do not worry about merge conflicts caused by this PR in relation to any of my other PRs, I'm fine to rebase. |
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.
ACK c60bf1e. redid the entire process to match the diff.
BOOM! The first edition 2018 PR to be merged across the stack, way to go! |
Update the MSRV to Rust 1.41.1 and enable edition 2018.
I'm not sure how we want to merge these MSRV PRs across the stack but here is the
rust-miniscript
one.Discussion: rust-bitcoin/rust-bitcoin#510 (comment)