}
fn default_alloc_error_hook(layout: Layout) {
- #[cfg(not(bootstrap))]
extern "Rust" {
// This symbol is emitted by rustc next to __rust_alloc_error_handler.
// Its value depends on the -Zoom={panic,abort} compiler option.
static __rust_alloc_error_handler_should_panic: u8;
}
- #[cfg(bootstrap)]
- let __rust_alloc_error_handler_should_panic = 0;
#[allow(unused_unsafe)]
if unsafe { __rust_alloc_error_handler_should_panic != 0 } {