-
Notifications
You must be signed in to change notification settings - Fork 746
Avoid generating fields/methods for opaque objects #936
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
Hm... It doesn't fail for me with libclang 4, nor on CI. Can you share what your local failures look like? |
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.
Looks great!
Just a couple nitpicks below to be addressed and then we can merge this :)
Thanks @jhod0 !
src/codegen/mod.rs
Outdated
debug_assert!(fields.is_empty()); | ||
debug_assert!(methods.is_empty()); | ||
// fields.clear(); | ||
// methods.clear(); |
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.
Nitpick: these commented out lines should be removed.
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.
Done!
src/codegen/mod.rs
Outdated
if is_opaque { | ||
fields.clear(); | ||
methods.clear(); | ||
// Opaque item should not have generated methods, fields |
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.
Nitpick: missing a period at the end of this sentence.
@bors-servo r+ Thanks again @jhod0 ! |
📌 Commit 034200a has been approved by |
Avoid generating fields/methods for opaque objects WIP fix for issue #929 With libclang 4, passes all tests on my machine except `dump_preprocessed_input`, but that fails on the master branch as well
As for the failing test, I had forgotten to add clang to my PATH. I added it and the test passes |
Ah, great to hear that :) |
☀️ Test successful - status-travis |
WIP fix for issue #929
With libclang 4, passes all tests on my machine except
dump_preprocessed_input
, but that fails on the master branch as well