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

Update error message: #[repr(transparent)] is now stable #12

Open
lo48576 opened this issue Aug 29, 2018 · 0 comments
Open

Update error message: #[repr(transparent)] is now stable #12

lo48576 opened this issue Aug 29, 2018 · 0 comments

Comments

@lo48576
Copy link
Owner

lo48576 commented Aug 29, 2018

#1 (comment).

Now #[repr(transparent)] is stabilized, so it should be primarily suggested (rather than #[repr(C)]).

// Neither `repr(C)` nor `repr(transparent)` was specified for an unsized type.
panic!(
"To avoid undefined behavior, outer type `{}` should be marked \
as `#[repr(C)]` or `#[repr(transparent)]`.\n\
For detail, see <https://github.com/lo48576/opaque_typedef/issues/1>.\n\
About `#[repr(transparent)]`, see RFC 1758 \
<https://github.com/rust-lang/rfcs/blob/master/text/1758-repr-transparent.md>.\
",
ty_outer
);

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

No branches or pull requests

1 participant