-
Notifications
You must be signed in to change notification settings - Fork 156
Newsyn #364
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
Newsyn #364
Conversation
Nice cheat! I was actually trying to do the same but getting rid of the |
Please, merge #362 . |
@@ -213,24 +213,25 @@ pub fn fields( | |||
} = f.bit_range; | |||
let sc = f.name.to_sanitized_snake_case(); | |||
let pc = f.name.to_sanitized_upper_case(); | |||
let pc_r = Ident::from(&*format!("{}_A", pc)); |
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.
Why all the from
-> new
changes? I've introduced the from
so the update wouldn't require so many changes.
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 couldn't to make From on new syn to work.
Maybe some features disabled?
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.
Probably. from
should be the same as new
but automatically using the current call site as span but maybe that has changed again in a newer version.
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.
the trait `std::convert::From<&str>` is not implemented for `proc_macro2::Ident`
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.
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.
proc_macro2::Ident
?
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.
syn reexport Ident from proc_macro2 now
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.
Meh, this is all so weird.
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.
Okay, fine, let's go full on nuts with this. Will need proper testing though.
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.
bors try
tryBuild succeeded |
This branch compiles in configuration with last quote-next = "1.0.0-rc1"
svd-parser = "0.7"
proc-macro2-next = "1.0.0-rc1"
[dependencies.syn-next]
version = "1.0.0-rc1"
features = ["full","extra-traits"] So, I think PR can be merged. |
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.
Would you please add a CHANGELOG entry?
Rebased on master. |
syn v1.0 |
@therealprof Is there something blocking merge? |
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.
Sorry, was away for a few days. LGTM.
bors r+ |
364: Newsyn r=therealprof a=burrbull r? @therealprof New `syn`, `quote` and `proc_macro2`. Co-authored-by: Andrey Zgarbul <[email protected]>
Build failed |
bors retry r=therealprof |
🔒 Permission denied Existing reviewers: click here to make burrbull a reviewer |
I've added you to bors so you should be able to try/retry now on this repository. |
Thank you. |
bors retry r=therealprof |
364: Newsyn r=therealprof a=burrbull r? @therealprof New `syn`, `quote` and `proc_macro2`. Co-authored-by: Andrey Zgarbul <[email protected]>
Build failed |
bors retry r=therealprof |
364: Newsyn r=therealprof a=burrbull r? @therealprof New `syn`, `quote` and `proc_macro2`. Co-authored-by: Andrey Zgarbul <[email protected]>
Build succeeded |
r? @therealprof
New
syn
,quote
andproc_macro2
.