alloc_error_handler can be an unsafe fn
which is then unsoundly invoked
#134225
Labels
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code currently compiles:
This is unsound if the alloc error handler ever gets invoked.
The alloc_error_handler feature is still unstable, tracking issue: #51540
The text was updated successfully, but these errors were encountered: