We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to raise an exception from a alloc_error_handler so my callers can optionally return E_OUTOFMEMORY if they don't want to exit.
alloc_error_handler
E_OUTOFMEMORY
The error handler in Rust is defined to return ! (doesn't return), so it would seem like I could just call RaiseException.
!
RaiseException
As things are now, I have to call core::intrinsics::abort in my handler.
core::intrinsics::abort
No response
The text was updated successfully, but these errors were encountered:
This is blocked on microsoft/win32metadata#764
Sorry, something went wrong.
The metadata now includes the necessary attribute to indicate such functions and #1485 brings support to Rust.
0.32.0 has now been published and includes this change.
0.32.0
Successfully merging a pull request may close this issue.
Motivation
I want to raise an exception from a
alloc_error_handler
so my callers can optionally returnE_OUTOFMEMORY
if they don't want to exit.The error handler in Rust is defined to return
!
(doesn't return), so it would seem like I could just callRaiseException
.As things are now, I have to call
core::intrinsics::abort
in my handler.Drawbacks
No response
Rationale and alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: