Skip to content

Conversation

@copybara-service
Copy link

Remove default value from rs_std::char_::value_.

The default value makes this class non-C compatible and triggers
"-Wreturn-type-C-linkage" (see corresponding bug). We need a solution to
make our class C linkable since it appears in extern "C" decls. This
solution may not be the best, since it violates our char_ invariants
around being a valid unicode codepoint. I could not find a way to
override C abi compatibility.

The default value makes this class non-C compatible and triggers
"-Wreturn-type-C-linkage" (see corresponding bug). We need a solution to
make our class C linkable since it appears in extern "C" decls. This
solution may not be the best, since it violates our `char_` invariants
around being a valid unicode codepoint. I could not find a way to
override C abi compatibility.

PiperOrigin-RevId: 856738276
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.

1 participant