summaryrefslogtreecommitdiff
path: root/tests/headers/convert-cpp-comment-to-rust.hpp
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-06-20 16:49:11 -0700
committerGitHub <noreply@github.com>2017-06-20 16:49:11 -0700
commit232a21ebc4a4ddc2468aed8e54d165c613037038 (patch)
treeb33266d174240de828b9a8fe99012556063a4fbb /tests/headers/convert-cpp-comment-to-rust.hpp
parent49526069a0cb9486cb4838134259589addafff40 (diff)
parent52305657b6eea5d9a0dea17f72f8865281ebbccc (diff)
Auto merge of #770 - fitzgen:issue-769-bad-instantiation-test, r=emilio
Ensure that every item is in some module's children list Previously, if an item's parent was not a module (eg a nested class definition whose parent it the outer class definition) and the parent was not whitelisted but the item was transitively whitelisted, then we could generate uses of the item without emitting any definition for it. This could happen because we were relying on the outer type calling for code generation on its inner types, but that relies on us doing code generation for the outer type, which won't happen if the outer type is not whitelisted. This commit avoids this gotcha by ensuring that all items end up in a module's children list, and so will be code generated even if their parent is not whitelisted. This does have the downside of changing the relative order of some of the emitted code, and so this has a big diff (as will the next bindgen update for downstream dependencies) but I actually think the newer order makes more sense, for what that is worth. Fixes #769 r? @emilio
Diffstat (limited to 'tests/headers/convert-cpp-comment-to-rust.hpp')
0 files changed, 0 insertions, 0 deletions