]> git.bitcoin.ninja Git - ldk-c-bindings/commit
Pass `with_ref_lifetime` through to rust-type-printing from C-path printing
authorMatt Corallo <git@bluematt.me>
Fri, 17 Jun 2022 21:01:14 +0000 (21:01 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 28 Jun 2022 17:16:28 +0000 (17:16 +0000)
commit257e3956c377b9610bc01925ceecca450d8735cc
tree7274cee0a5391ec5b182766e1a26f642053de177
parent276f2e7e6cf0149d56ca72c780e963938feb7206
Pass `with_ref_lifetime` through to rust-type-printing from C-path printing

If we get to `write_c_path_intern` with `c_ty` unset, we delegate to
`write_rust_path`, however it would lose the `with_ref_lifetime`
flag, causing us to miss `'static` when printing references in
generic arguments. Here we simply pipe it through.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs