-
Notifications
You must be signed in to change notification settings - Fork 216
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
no_panic attribute applied to function that can panic (SafePatchIterator::next(), I think) #167
Comments
Thanks for the report, Windows support is relatively recent, and the CI coverage is still weak... Does the command line project build in release mode or does it fail at linking with this error too ? In the meantime, I'll try to build a few more things in the windows CI. |
So the issue is no_panic indeed, when linking without LTO. OS seems to be neutral to this, linux builds behaved the same. I remove no_panic, it was only protecting two functions anyway, and I can still put it back temporarily if needed. Side bonus, windows CI now check the command line build. |
Merged, released as 0.5.1 |
Cool, thanks! |
Linking with tract like this:
I'm getting the following linker error on Windows, using Rust 1.37:
Seems like no_panic is used to ensure that there are no panics in SafePatchIterator::next(), but one is in fact there. I don't see the possible panic myself, but something may have changed in a new version of Rust?
Can easily clone and patch this out myself, of course, but this seems fishy.
EDIT: Confirmed this is an issue on current master, and that taking out no_panic makes it link correctly.
The text was updated successfully, but these errors were encountered: