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

Improve error message for #[repr(packed(N))] #83

Merged
merged 1 commit into from
Sep 10, 2019
Merged

Improve error message for #[repr(packed(N))] #83

merged 1 commit into from
Sep 10, 2019

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Sep 10, 2019

#34 can already detect this, but this will generate better error messages.

This also adds some tests related to #[repr(packed)].

@taiki-e
Copy link
Owner Author

taiki-e commented Sep 10, 2019

bors r+

bors bot added a commit that referenced this pull request Sep 10, 2019
83: Improve error message for #[repr(packed(N))] r=taiki-e a=taiki-e

#34 can [already detect this](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=7331036de27faeb8354e367ef514c6c6), but this will generate better error messages.

This also adds some tests related to `#[repr(packed)]`.

Co-authored-by: Taiki Endo <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 10, 2019

Build succeeded

  • taiki-e.pin-project

@bors bors bot merged commit b9feff4 into master Sep 10, 2019
@taiki-e taiki-e deleted the repr-packed branch September 10, 2019 15:17
@taiki-e taiki-e added the A-diagnostics Area: Messages for errors and warnings label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors and warnings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant