[bindings] Drop one static-lifetime restriction and check success
authorMatt Corallo <git@bluematt.me>
Fri, 2 Oct 2020 01:32:39 +0000 (21:32 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Oct 2020 18:50:22 +0000 (14:50 -0400)
commit6df3aa76c300979ff34847830e4caaa787511825
tree4663da1e84312b15fedbb19a5c1f227f5b34d69b
parent4d0cf680ab706fb737d1195d620a91057d449390
[bindings] Drop one static-lifetime restriction and check success

In general we should stop enforcing that all lifetimes are static
- we may take references from C and its up to reviewing the diff on
the bindings changes and the user(s) to ensure lifetimes are valid.

Also asserts a success criteria that was missed before.
c-bindings-gen/src/types.rs