Skip to content

Commit c171414

Browse files
committed
Expose the name of the inner type of an alias
1 parent 3dee8ba commit c171414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindgen/codegen/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,9 @@ impl CodeGenerator for Type {
11211121
cb.field_visibility(FieldInfo {
11221122
type_name: &item.canonical_name(ctx),
11231123
field_name: "0",
1124+
field_type_name: inner_item
1125+
.expect_type()
1126+
.name(),
11241127
})
11251128
})
11261129
.unwrap_or(ctx.options().default_visibility);

0 commit comments

Comments
 (0)