summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-11-21 10:59:36 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2016-11-21 11:01:33 -0800
commit77868f4379dc40b91dfd3674c8091c14dcf69ecd (patch)
tree823c44dce9715e6d5ba16a43a110d1649fed583a
parent94fff8339da07c7b45dea724a29c02c8fdc646f7 (diff)
Recurse on the innter type when finding a template alias name target
The assertion that the template alias's inner type was our name target, and that we didn't need to recurse, is failing when generating SpiderMonkey bindings. I'm not 100% sure when this can happen, but clearly it can, and it is easy to support, so let's support it.
-rw-r--r--libbindgen/src/ir/item.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/libbindgen/src/ir/item.rs b/libbindgen/src/ir/item.rs
index 32e3c4c5..d96936ad 100644
--- a/libbindgen/src/ir/item.rs
+++ b/libbindgen/src/ir/item.rs
@@ -556,10 +556,6 @@ impl Item {
TypeKind::TemplateAlias(inner, _)
if for_name_checking => {
item = ctx.resolve_item(inner);
- assert_eq!(item.id(),
- item.name_target(ctx,
- for_name_checking));
- return item.id();
}
_ => return item.id(),
}