-
Notifications
You must be signed in to change notification settings - Fork 694
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
Ensure all derive analyses check array limit on bitfields #1001
Conversation
Looks like CI is complaining because of compilation errors:
|
These changes look like how I'd expect, but we need to add the test case from the original bug report as well. See https://github.com/rust-lang-nursery/rust-bindgen/blob/master/CONTRIBUTING.md#authoring-new-tests for information on how to add new tests to the test suite. |
Ah alright, I'll add that hopefully tonight |
Some tests seem to be failing because of this error
I am not sure what could cause this. The error appears if I use the tests/test-one.sh script, but not if I use cargo test. Any ideas @fitzgen? |
When we generate bindings, we also emit
Is this happening in the new test that you added? I wouldn't expect this PR to have a serious impact on the generated bindings for most of our existing test suite, and wouldn't expect any existing tests to start failing their layout tests. Ok, yeah it looks like this is the nest test. I'm not sure exactly why we are ultimately generating an incorrect layout, and would need to investigate more to figure it out. I expect it involves a bug in how we compute bitfields' physical allocation units. I think we can land this PR now, however, since it fixes an existing bug, and file a follow up issue for the incorrect layout. In order to land this now, we'll need to add this to the top of the test so that it doesn't generate layout tests for the time being: // bindgen-flags: --no-layout-tests |
@aeleos, BTW, I'm not sure if you're aware that the "impl period" has just begun, but the folks hacking on |
☔ The latest upstream changes (presumably #1002) made this pull request unmergeable. Please resolve the merge conflicts. |
@fitzgen I heard about it but I didn't see the one for bindgen, I'll definitely check it out. Also, I rebased after the recent merge and all the checks passed so it looks like everything is working. |
@bors-servo r+ Thanks @aeleos ! Are you interested in hacking on the follow up issue to this, which is the incorrect layout? I'll file it and include some details in a bit, then drop a link back here. If you want to pick it up, you can tell @highfive :) |
📌 Commit 4111a46 has been approved by |
@fitzgen Yea I am interested in the incorrect layout issue, it loos like it could be interesting. I'll start looking through the code now and see if I can find anything, but let me know when you have filed the new issue and I'll add myself to it. |
💔 Test failed - status-travis |
@fitzgen It seems like one of the tests broke and froze for some reason. Only one test failed, and it ran for 4 hours with no logs. Have you ever encountered tests failing like this? |
I restarted it -- I've seen jobs hang before in Travis CI, before it even gets to running the |
☀️ Test successful - status-travis |
Fixes #982
r? @fitzgen