Skip to content

Support Unpin trait impls#1299

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940700298
Open

Support Unpin trait impls#1299
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940700298

Conversation

@copybara-service

Copy link
Copy Markdown

Support Unpin trait impls

Unlike regular trait impls in cc_bindings_from_rs, Unpin starts out as kIsImplemented = true for all types, and Crubit generates specializations for kIsImplemented = false for types that are !Unpin. I originally didn't have it negated, but that massively bloated generated APIs and this way felt more intuitive anyways.

@google-cla

google-cla Bot commented Jun 30, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Unlike regular trait impls in cc_bindings_from_rs, `Unpin` starts out as `kIsImplemented = true` for all types, and Crubit generates specializations for `kIsImplemented = false` for types that are `!Unpin`. I originally didn't have it negated, but that massively bloated generated APIs and this way felt more intuitive anyways.

PiperOrigin-RevId: 940700298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants