diff options
| author | Kevin Reid <kpreid@switchb.org> | 2023-08-19 13:16:34 -0700 |
|---|---|---|
| committer | Kevin Reid <kpreid@switchb.org> | 2023-08-19 13:27:03 -0700 |
| commit | 3dde25edc46267cd21ab189af84cad100811b204 (patch) | |
| tree | 7e29e1056ca4a65668347f3682d8bdf9188e3202 /compiler/rustc_codegen_gcc | |
| parent | b9177c0adb1ccae97145569c954696a4c680f5b3 (diff) | |
| download | rust-3dde25edc46267cd21ab189af84cad100811b204.tar.gz rust-3dde25edc46267cd21ab189af84cad100811b204.zip | |
Correct and expand documentation of `handle_alloc_error` and `set_alloc_error_hook`.
Add the following facts: * `handle_alloc_error` may panic instead of aborting. * What happens if a hook returns rather than diverging. * A hook may panic. (This was already demonstrated in an example, but not stated in prose.) * A hook must be sound to call — it cannot assume that it is only called by the runtime, since its function pointer can be retrieved by safe code.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
