-
Notifications
You must be signed in to change notification settings - Fork 269
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
panic = "abort" on release #183
Comments
It's also completely necessary for security and correctness in mixed-language projects, because panics across an FFI boundary are undefined behaviour. By their nature it's impossible to prevent panics, and the only other alternative is to add a bunch of verbose and error-prone boilerplate to all code that crosses an FFI boundary — including in libraries you don't want to have to change. See also zcash/librustzcash#78 and rust-lang/rust#52652, in particular my comment here and the subsequent discussion. Note that |
This can reduce binary size and improve instr cache performance. So maybe we should test this.
The text was updated successfully, but these errors were encountered: