bazel /
crubit /
275fa92dbbcf7f275171545659dc76eacfc9b2ae Fix handling of `const SomeStruct&` when generating thunk impls.
Before this CL, `format_cc_type` would error out when trying to format a const-ref:
panicked at 'called `Result::unwrap()` on an `Err` value: Type not
yet supported: CcType { name: Some("&"), is_const: false, type_args:
[CcType { name: None, is_const: true, type_args: [], decl_id:
Some(DeclId(95208605585584)) }], decl_id: None }',
Additionally, the `const` qualifier could be lost.
PiperOrigin-RevId: 419833272
3 files changed
tree: fff4c5ce2e621cf6eafaa3bba88204cd00c70e25
- lifetime_annotations/
- rs_bindings_from_cc/
- CODE_OF_CONDUCT
- CONTRIBUTING
- LICENSE
- README.md
README.md
Crubit: C++/Rust Bidirectional Interop Tool
Extremely experimental interop tooling for C++ and Rust.
Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.