Use `lifetime_elision` by default in test/struct/constructors+methods.

This CL adds `#pragma clang lifetime_elision` to the "default" / "main"
tests in .../rs_bindings_from_cc/test/struct/constructors/constructors.h
(and in .../methods/methods.h).

The old `elided_lifetimes.h' (and `.cc`) are deleted.

Some minimal test coverage for the no-lifetimes case is preserved via 1)
the new `struct/constructors/no_elided_lifetimes.h` tests (in the
long-term we can verify from Rust's unit tests that bindings are missing
via `assert_not_impl_all!` and 2) the new `golden/no_elided_lifetimes.h`
test (since no `assert_not_impl_all!` equivalent exists for verifying
whether bindings for instance methods are present or missing).

PiperOrigin-RevId: 422935486
15 files changed
tree: 1e21b88f152f224d7c6d2980d0bbdbb6d813850a
  1. lifetime_annotations/
  2. rs_bindings_from_cc/
  3. CODE_OF_CONDUCT
  4. CONTRIBUTING
  5. LICENSE
  6. 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.