projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b6a0659
)
Handle type aliases which are used in the same file as declared.
author
Matt Corallo
<git@bluematt.me>
Thu, 15 Apr 2021 17:10:22 +0000
(13:10 -0400)
committer
Matt Corallo
<git@bluematt.me>
Thu, 15 Apr 2021 21:59:35 +0000
(17:59 -0400)
We previously only handled type aliases correctly when they were
declared in a different file and imported.
c-bindings-gen/src/types.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/types.rs
b/c-bindings-gen/src/types.rs
index 92da8727929bd1f0ef43b245fc2895b05bc95aa0..16f3ff56663300631a80467f0fade67cd66dd0c6 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-413,10
+413,7
@@
impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
else { process_alias = false; }
}
if process_alias {
- match &*t.ty {
- syn::Type::Path(_) => { declared.insert(t.ident.clone(), DeclType::StructImported); },
- _ => {},
- }
+ declared.insert(t.ident.clone(), DeclType::StructImported);
}
}
},