-
Notifications
You must be signed in to change notification settings - Fork 745
Conflicting constified module enum/rustified enum regex leads to compile error when C enum has non-unique discriminant values #1198
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
Labels
Comments
Thanks for the bug report @tmfink ! I think we should define a precedence and go with that. |
tmfink
added a commit
to tmfink/rust-bindgen
that referenced
this issue
Mar 13, 2018
If an enum matched a pattern for rustified enum and constified module enum, then rust code would fail to compile with "ambiguous associated type" error. We fix the error by giving constified module enum "higher precedence". Fixes issue rust-lang#1198
bors-servo
pushed a commit
that referenced
this issue
Mar 13, 2018
Declare precedence on enum types Fixes issue #1198 where an enum matches the pattern for multiple enum types, such as constified module enum AND rustified enum. Documents precedence in `Builder` doc comment.
tmfink
added a commit
to tmfink/rust-bindgen
that referenced
this issue
Mar 17, 2018
The previous fix for issue rust-lang#1198 was incomplete.
tmfink
added a commit
to tmfink/rust-bindgen
that referenced
this issue
Mar 17, 2018
The previous fix for issue rust-lang#1198 was incomplete.
bors-servo
pushed a commit
that referenced
this issue
Mar 18, 2018
Handle bitfield enum pattern aliasing The previous fix for issue #1198 was incomplete.
When can we expect a new |
I just bumped the version, will publish it in a sec. |
Thanks!
…On Sun, Mar 25, 2018 at 2:23 PM, Emilio Cobos Álvarez < ***@***.***> wrote:
I just bumped the version, will publish it in a sec.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1198 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFBYuBmJcQOJh1J630Be-e3Lr0hKAfMzks5th-CTgaJpZM4RMezT>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Bindgen Invocation
Actual Results
and/or
Expected Results
There are several possibilities for correct behavior:
--rustified-enum
/--constified-enum-module
overlap.ConveysEnumStrategy
trait).Example of behavior 2:
The text was updated successfully, but these errors were encountered: