Skip to content

Allow single-field named structs to be transparent #3971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xiretza
Copy link

@Xiretza Xiretza commented Aug 11, 2025

This more closely matches the criteria for e.g. #[repr(transparent)] and #[serde(transparent)].

TODO, if this is deemed a desirable change:

  • Documentation updates
  • Tests (Where should those go? The change isn't backend-specific)

Does your PR solve an issue?

Couldn't find an issue filed already.

Is this a breaking change?

No, code that previously compiled is unchanged, only code that used to be a compile error now does compile.

This more closely matches the criteria for e.g. #[repr(transparent)]
and #[serde(transparent)].
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