-
Notifications
You must be signed in to change notification settings - Fork 168
Use u8 repr for enum instead of custom method #203
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
Conversation
This is an alternative proposal to #202 as suggested in #202 (comment) Signed-off-by: Daniel Egger <daniel@eggers-club.de>
r? @korken89 (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Changes look good, but does this address the code generation problem? rustc/LLVM might be smart enough for that, but I'm not completely sure.
Not sure, that's what I want to find to (and also whether this compiles with the MSRV), but it certainly is at least an improvement for |
This is a 1.0 feature, so the only concern is codegen. I do believe rustc will attach LLVM range metadata, so it should optimize well. |
Well, it did build, even with the current MSRV. And it definitely is an improvement in codegen for dev builds at least and most certainly no regression for release builds. 😉 |
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 r+
Build succeeded |
203: Update to Syn 1.0 r=korken89 a=dtolnay Release notes: https://github.com/dtolnay/syn/releases/tag/1.0.0 Co-authored-by: David Tolnay <dtolnay@gmail.com>
This is an alternative proposal to #202 as suggested in
#202 (comment)
Signed-off-by: Daniel Egger daniel@eggers-club.de