-
Notifications
You must be signed in to change notification settings - Fork 274
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
move to rust 2021, macro tweak to compile #650
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,12 +58,12 @@ pub fn generate_client_module( | |
|
||
/// The Client. | ||
#[derive(Clone)] | ||
pub struct Client#generics { | ||
pub struct Client #generics { | ||
inner: TypedClient, | ||
#(#markers_decl),* | ||
} | ||
|
||
impl#generics Client#generics | ||
impl #generics Client #generics | ||
where | ||
#(#where_clause),* | ||
{ | ||
|
@@ -78,7 +78,7 @@ pub fn generate_client_module( | |
#(#client_methods)* | ||
} | ||
|
||
impl#generics From<RpcChannel> for Client#generics | ||
impl #generics From<RpcChannel> for Client #generics | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would happen if you did not make these whitespace changes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is done by cargo fix. See: https://doc.rust-lang.org/edition-guide/rust-2021/reserving-syntax.html |
||
where | ||
#(#where_clause2),* | ||
{ | ||
|
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.
We should probably bump the major versions everywhere due to different compiler requirements.
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.
do you mean minor or patch? 18.1.0 makes sense to me, as its compatible with 18.0.0
maybe even just 18.0.1 as this doesn't effect the behavior of the program
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.
I actually really meant
major
. The thing is that we now suddenly require everyone to use a specific Rust compiler version which IMHO is a breaking change. But I'm not a semver expert, maybe @dvdplm has some suggestions.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.
MSRV changes are generally considered breaking. v19! :)
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.
Oh well, I can do that here, sure! But I know that many do not do this (I put in a lot of PRs across parity for this, and it so far has not been)
Happy to update across the board and reference this thread to justify.
Do note that it's not universally agreed that MSVR bump = breaking change.