Skip to main content

alloc_failed

Function alloc_failed 

Source
pub fn alloc_failed(layout: Layout) -> !
Expand description

Ends the process for an allocation of layout that failed: through the registered hook, or where none is (a test binary, an embedder) through std’s default (handle_alloc_error: one line, then abort). Allocates nothing. Never inlined: every allocation failure passes this frame (the global allocator’s and libxml2’s XPath one), so the hooks’ line names it as the debugger breakpoint.