]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Include the `where` clause from a "real" type when mapping type aliases
authorMatt Corallo <git@bluematt.me>
Mon, 30 May 2022 23:51:54 +0000 (23:51 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 28 Jun 2022 16:52:23 +0000 (16:52 +0000)
commit6679050a1652d62712a873af0a4dee8382e63f99
tree8ef19ed047d3fd118fca514041477edc94f50186
parentf8adf539c6ff1094dd40fb41ae29d056cad536b9
Include the `where` clause from a "real" type when mapping type aliases

ie if we have a
```
struct A<T: Deref> where T::Target: Trait {}
pub type B<T> = A<T>;
```

this includes the `where` clause so that we end up calling
`writeln_opaque` for `struct B<T: Deref> where T::Target: Trait {}`
instead of `struct B<T: Deref> {}`.
c-bindings-gen/src/main.rs