diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-14 16:33:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 16:33:47 -0600 |
commit | d5a8fa2a56d05da94f24719d808a1a850325b383 (patch) | |
tree | 3fd8313857bddf37844bbe3cc41735a6e6290f40 /libbindgen/src/codegen/helpers.rs | |
parent | 17d15da630092b80b50bf155b990347c48793289 (diff) | |
parent | e52dc684cf4db42b320e373b0c73741fedb908f8 (diff) |
Auto merge of #253 - fitzgen:clean-up-type-collector, r=emilio
Clean up TypeCollector implementations
Rather than making `TypeCollector` implementations recursively call
`collect_types` on their subtypes, just gather immediate subtypes into
the `ItemSet`. The subtypes' `TypeCollector` implementation will be
recursively called by `WhitelistedItemsIter`. This makes it less likely
we will "skip" a layer by recursively calling `collect_types` on
some subtypes without adding the subtypes themselves to the set.
r? @emilio
Diffstat (limited to 'libbindgen/src/codegen/helpers.rs')
0 files changed, 0 insertions, 0 deletions