-
Notifications
You must be signed in to change notification settings - Fork 52
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
Struct Object Constructors #723
Struct Object Constructors #723
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.
much nicer, thanks!!
In particular I appreciate moving the from-ffi logic out of the constructor and making it purely internal. Good call. |
Something to test: JS tests are passing on the CI, but not on my machine |
Uh oh. Don't have a lot of time to test right now, but @Manishearth looks like there's a bug in the padding logic. But it seems not to be an issue on the CI? Here's the error I get:
And if I adjust the following line in
So that there is no padding, then no error is returned and all assertions pass. I'm not sure what the difference is between the CI and my machine is, except maybe the WASM target version? I'll have to do some digging on this though when I have time later. |
@ambiguousname does main fail for you too, locally? I think we just run on latest stable on CI, and on MSRV. Maybe nightly changed something |
It could be something to do with nightly? I'll have to look into it when I have some more time. I'll also have to test on main, haven't done that yet. |
This is really strange. After uninstalling a bunch of toolchains and switching my default toolchain a few times, the error is totally gone. Even when setting it back to the default toolchain I was using before. Weird! It's fixed now though, so I think we're okay. |
Hmm, I'm also having trouble reproducing it |
I figured out what's causing it. New issue: #725 |
Fixes #719.