-
Notifications
You must be signed in to change notification settings - Fork 745
Remove early anonymous bitfield filtering and consolidate name method #1059
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Only thing is the formatting of the test -- can you verify whether or not updating rustfmt
preserves the nice formatting?
Then we can land this! (and make @pepyakin rebase :-P (it should be pretty easy))
) | ||
); | ||
assert_eq ! ( :: std :: mem :: size_of :: < foo < f32 > > ( ) , 4usize , concat ! ( "Size of template specialization: " , stringify ! ( foo < f32 > ) ) ); | ||
assert_eq ! ( :: std :: mem :: align_of :: < foo < f32 > > ( ) , 4usize , concat ! ( "Alignment of template specialization: " , stringify ! ( foo < f32 > ) ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you update to the latest rustfmt
then it should preserve the old formatting here.
$ rustup update nightly
$ cargo +nightly install rustfmt-nightly
@fitzgen I think that fixed it, yea I did have an outdated version of rustfmt. I left it in because I thought that if it happened on the CI test it would fail, so I would need to keep it in, but I realize now that wouldn't have happened because it was just my rustfmt version. |
@bors-servo r+ Thank you very much @aeleos ! |
📌 Commit a1ee87f has been approved by |
💔 Test failed - status-travis |
I don't understand why our CI pushes get immediately cancelled all the time now... Restarted. |
☀️ Test successful - status-travis |
This PR is some changes to early bitfield filtering to help fix (#1007) This does not close (#1007), but allows for checking if the bitfield is too large during a later stage.
@fitzgen r?