summaryrefslogtreecommitdiff
path: root/libbindgen/src/codegen/helpers.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-12-02 14:38:27 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2016-12-02 14:38:27 -0800
commit12ee656be8dbacb49179060763830c08a5202156 (patch)
tree519da16633f6d060ed50879b55aab134ad44d7fb /libbindgen/src/codegen/helpers.rs
parent2c43aaef40ca43ed7be52ea738065bfbe3baae6c (diff)
Assert that we won't infinite loop in ItemAncestorsIter
In non-release builds with debug assertions, keep track of the set of `ItemId`s that we have iterated over in `ItemAncestorsIter` and make sure that we don't reach an ancestor we have already yielded, which would trigger an infinite loop.
Diffstat (limited to 'libbindgen/src/codegen/helpers.rs')
0 files changed, 0 insertions, 0 deletions