bazel /
crubit /
06f76b1dbdb26bb0d8067c54f92bda0538c6ce83 s/LookupResult/std::optional<IR::Item>/ (errors => UnsupportedItem).
This CL replaces and deletes the Importer::LookupResult class
with std::optional<IR::Item>. This CL translates the old LookupResult
values as follows:
1. LookupResult() => std::nullopt
2. LookupResult(IR::Item) => std::optional(IR::Item)
3. LookupResult(std::string error) => std::optional(IR::UnsupportedItem(...))
This refactoring has been done when working on b/226211490, but it
is not strictly required to address this bug.
PiperOrigin-RevId: 436725428
3 files changed
tree: 3059304ed7a3d85699711d4cece363f3a3f471a6
- 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 pull us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.