Skip to content

Commit e611aff

Browse files
committed
Prevent emission of type aliases in root module for inner types
* Emit aliases in the nearest ancestor module if the parent is not a module, rather than in the root module * If an alias would refer to itself, don't emit it (this is really a workaround for the fact that names are sometimes not unique enough, e.g. the header in #2056 produces two items called f_iterator)
1 parent 083c43f commit e611aff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bindgen/ir/context.rs

-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,6 @@ If you encounter an error missing from this list, please file an issue or a PR!"
791791
item.id(),
792792
ancestor_id
793793
);
794-
795794
module.children_mut().insert(item.id());
796795
return;
797796
}

0 commit comments

Comments
 (0)