summaryrefslogtreecommitdiff
path: root/libbindgen/src/codegen/helpers.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-11-14 13:16:55 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2016-11-14 13:16:55 -0800
commite52dc684cf4db42b320e373b0c73741fedb908f8 (patch)
treedb1115835121cef280ae1903622f8a215f49d5db /libbindgen/src/codegen/helpers.rs
parent004a19537f1f40e77aacdc13a2f56a8553e63dc9 (diff)
Clean up TypeCollector implementations
Rather than making `TypeCollector` implementations recursively call `type_collector` 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.
Diffstat (limited to 'libbindgen/src/codegen/helpers.rs')
0 files changed, 0 insertions, 0 deletions