-
Notifications
You must be signed in to change notification settings - Fork 706
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
Emit a "manual" implementation of Debug when it cannot be derived #875
Comments
Can you point a place where to start looking? |
Ahh, I think I found it :) |
@bkchr yep! Let me know if you have any other questions :) |
I use cargo test --features testing_only_libclang_4 to run the tests. Is it normal that the expectation files are modified by the test case? |
Okay, I answered the question myself. ^^ |
Yes, this is to make it easier to update test expectations when making changes that modify their output, and its easy enough to
Yeah, I had thought this was documented in |
It is documented in the Contribution.md, but the command, written there, does not work. Or at least did not worked for me ^^ |
Implements Debug trait for types which do not support derive Debug For types that do not support derive Debug be implemented automatically by rust, we know can generate implementations of the Debug trait. This code generation is hidden behind the '--force-derive-debug' command-line flag. Should solve: #875 Sorry for the extra noise in lib.rs, codegen/mod.rs etc, that was rustfmt.
I think that can now be closed @fitzgen ? |
Yes, thanks! Were you interested in hacking on some other bindgen issues? We have plenty, if you're looking :) |
Could initially just print the type's name as a placeholder.
Could eventually print the fields within the type that are
Debug
and placeholders for the fields that aren't.Should be behind a new option.
The text was updated successfully, but these errors were encountered: