summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index 983ee4dd..34b5b4d9 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -666,6 +666,7 @@ impl CodeGenerator for Type {
.through_type_refs()
.resolve(ctx);
let name = item.canonical_name(ctx);
+ let path = item.canonical_path(ctx);
{
let through_type_aliases = inner.into_resolver()
@@ -678,7 +679,7 @@ impl CodeGenerator for Type {
// typedef struct foo { ... } foo;
//
// here, and also other more complex cases like #946.
- if through_type_aliases.canonical_name(ctx) == name {
+ if through_type_aliases.canonical_path(ctx) == path {
return;
}
}