-
Notifications
You must be signed in to change notification settings - Fork 729
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
derive_debug(false) still derives Debug for rustified Enum #1899
Comments
emilio
added a commit
that referenced
this issue
Oct 13, 2020
Fixes #1899. This code predated all the derive machinery, and always hardcoded its derives. We could avoid hard-coding the other traits, but those seem usually-useful, so leave them there for backwards compat for now.
Fix at #1900, thanks for filing it! |
emilio
added a commit
that referenced
this issue
Oct 13, 2020
Fixes #1899. This code predated all the derive machinery, and always hardcoded its derives. We could avoid hard-coding the other traits, but those seem usually-useful, so leave them there for backwards compat for now.
emilio
added a commit
that referenced
this issue
Oct 16, 2020
Fixes #1899. This code predated all the derive machinery, and always hardcoded its derives. We could avoid hard-coding the other traits, but those seem usually-useful, so leave them there for backwards compat for now.
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
Expected Results
Use case :
I'm trying to build some bpf program to run inside Linux kernel. It's pretty restrictive on what is allowed, and apparently having Debug implemented break something related to the "only one ELF section" rule (pretty much anything related to strings does).
I tried as hard as I could to tell Bindgen to not derive/generate Debug, but apparently it still does for enumerations. Stripping off all derive Debug fixes loading the program, but I feel like
derive_debug(false)
orno_debug(".*")
should already have done that.The text was updated successfully, but these errors were encountered: