Skip to content
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

Add #[repr(transparent)] to Atomic* types #52149

Merged
merged 1 commit into from
Jul 11, 2018

Commits on Jul 8, 2018

  1. Add #[repr(transparent)] to Atomic* types

    This allows them to be used in #[repr(C)] structs without warnings. Since rust-lang/rfcs#1649 and rust-lang#35603 they are already documented to have "the same in-memory representation as" their corresponding primitive types. This just makes that explicit.
    willmo committed Jul 8, 2018
    Configuration menu
    Copy the full SHA
    e769dec View commit details
    Browse the repository at this point in the history