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 02:26:57 +0000 (02:26 +0000)
commitf6ed8872e34e02ebf279546aa51c20538a4237ad
treef5ac223bf4a059737a39f1712ff9b6cd605b6f72
parent494a0973446f012315f4becb0d8e06a65a339bb3
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