-
Notifications
You must be signed in to change notification settings - Fork 742
Fix calling convention propagation for function pointers. #549
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
This sucks, but works. The full solution is a refactoring that needs more thought than the time I'm able to dedicate to bindgen right now, see the comment for details. Signed-off-by: Emilio Cobos Álvarez <[email protected]>
I need to figure out a way for this to be green in CI given we're "cross-compiling" the test. |
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.
So the CI issue is that we don't have support for something like
// bindgen-windows-only
in our test runner, right?
Since we generate different bindings with MSVC mangling anyways, it would make sense to have different expectations dirs for different targets. Then we could add appveyor CI.
typedef void (*my_fun_t)(int, int, int, int, | ||
int, int, int, int, | ||
int, int, int, int, | ||
int, int, int, int); |
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.
Nice :-|
// and https://github.com/rust-lang/rust/issues/40158 | ||
// | ||
// Note that copy is always derived, so we don't need to implement it. | ||
impl CanDeriveDebug for FunctionSig { |
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.
At least extending these checks is obvious and straight forward.
Yeah, but then we need to add an easy way of updating test expectations across different targets. It seems just giving clang the right |
And I don't want nor have the time to debug it right now.
@bors-servo r=fitzgen |
📌 Commit 4c07a72 has been approved by |
Fix calling convention propagation for function pointers. This sucks, but works. The full solution is a refactoring that needs more thought than the time I'm able to dedicate to bindgen right now, see the comment for details. r? @fitzgen
☀️ Test successful - status-travis |
This sucks, but works.
The full solution is a refactoring that needs more thought than the time I'm
able to dedicate to bindgen right now, see the comment for details.
r? @fitzgen