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

Divide by zero in struct layout #1137

Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Nov 1, 2017

See commit messages for details.

r? @emilio or @pepyakin

@highfive
Copy link

highfive commented Nov 1, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

It isn't checking alignment at all; it's checking offsets.
@fitzgen fitzgen force-pushed the divide-by-zero-in-struct-layout branch from 7eabe97 to 460aaa0 Compare November 2, 2017 00:12
@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

Thanks for review! Fixed up the 3.8 and 3.9 test expectations.

@bors-servo r=emilio

@bors-servo
Copy link

📌 Commit 460aaa0 has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit 460aaa0 with merge f059ede...

bors-servo pushed a commit that referenced this pull request Nov 2, 2017
Divide by zero in struct layout

See commit messages for details.

r? @emilio or @pepyakin
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: emilio
Pushing f059ede to master...

@bors-servo bors-servo merged commit 460aaa0 into rust-lang:master Nov 2, 2017
@fitzgen fitzgen deleted the divide-by-zero-in-struct-layout branch November 2, 2017 16:41
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.

None yet

4 participants