diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-12-02 17:14:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 17:14:37 -0800 |
commit | 8013e0c7bc28e0883363649c94360b4878d1d742 (patch) | |
tree | e9f0d78f6fde2b58cf6f75e191160f773d8d4396 /libbindgen/src/codegen/mod.rs | |
parent | 18711e0fc7dd2500df524a7c9f9db4864a8f0c38 (diff) | |
parent | fa5ad81713a738dd181333de3f60a432f22a5003 (diff) |
Auto merge of #314 - fitzgen:assert-no-infinite-loops-in-ancestors, r=emilio
Assert that we won't infinite loop
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/mod.rs')
0 files changed, 0 insertions, 0 deletions