-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Expose core::intrinsics::abort
as std::process::abort
#1363
Comments
Semantics of this intrinsics are significantly more different compared to C
|
I don't know the details of abort but I'd like some safe wrapper. |
Even a stable wrapper would be grand :) |
This would be super helpful for wasm stuff, where panics and aborts translate into traps either way, but panics pull in all the formatting and panicking infrastructure, which adds something like 30-40K to binary size. Anything I can do to help push this forward? |
Er wait, I'm not thinking of I'm thinking of a stable |
rust-lang/rust#44489 is where you’d want to discuss panic infrastructure and it pulling in formatting machinery unnecessarily. |
This is done since |
|
@nagisa Weird, the documentation says: "The stabilized version of this intrinsic is std::process::abort". https://doc.rust-lang.org/nightly/std/intrinsics/fn.abort.html |
Closing in favor of #2512. |
This would be a safe wrapper around the intrinsic.
The text was updated successfully, but these errors were encountered: