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>
Fri, 24 Jun 2022 21:27:19 +0000 (21:27 +0000)
commita70396773929cf3bd6e0f59f2562e34554490d46
treed3790b107769b14712ea590aece76d4722873e0f
parentd77db80b1463a6a6c47da3968a17bfcb8ba50260
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