Skip to content

Commit 77868f4

Browse files
committed
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.
1 parent 94fff83 commit 77868f4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libbindgen/src/ir/item.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,6 @@ impl Item {
556556
TypeKind::TemplateAlias(inner, _)
557557
if for_name_checking => {
558558
item = ctx.resolve_item(inner);
559-
assert_eq!(item.id(),
560-
item.name_target(ctx,
561-
for_name_checking));
562-
return item.id();
563559
}
564560
_ => return item.id(),
565561
}

0 commit comments

Comments
 (0)