|
1 |
| -custom alloc error handler called! |
| 1 | +custom panic handler called! |
| 2 | +panicked at RUSTLIB/alloc/src/alloc.rs:LL:CC: |
| 3 | +memory allocation of 4 bytes failed |
2 | 4 | error: abnormal termination: the program aborted execution
|
3 | 5 | --> $DIR/alloc_error_handler_no_std.rs:LL:CC
|
4 | 6 | |
|
5 | 7 | LL | core::intrinsics::abort();
|
6 | 8 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ the program aborted execution
|
7 | 9 | |
|
8 | 10 | = note: BACKTRACE:
|
9 |
| - = note: inside `alloc_error_handler` at $DIR/alloc_error_handler_no_std.rs:LL:CC |
10 |
| -note: inside `_::__rg_oom` |
11 |
| - --> $DIR/alloc_error_handler_no_std.rs:LL:CC |
12 |
| - | |
13 |
| -LL | #[alloc_error_handler] |
14 |
| - | ---------------------- in this procedural macro expansion |
15 |
| -LL | fn alloc_error_handler(_: Layout) -> ! { |
16 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 11 | + = note: inside `panic_handler` at $DIR/alloc_error_handler_no_std.rs:LL:CC |
| 12 | + = note: inside `alloc::alloc::__alloc_error_handler::__rdl_oom` at RUSTLIB/alloc/src/alloc.rs:LL:CC |
17 | 13 | = note: inside `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
18 | 14 | = note: inside `alloc::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
19 |
| - = note: inside `alloc::boxed::Box::<i32, BadAlloc>::new_uninit_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC |
20 |
| - = note: inside `alloc::boxed::Box::<i32, BadAlloc>::new_in` at RUSTLIB/alloc/src/boxed.rs:LL:CC |
21 | 15 | note: inside `start`
|
22 | 16 | --> $DIR/alloc_error_handler_no_std.rs:LL:CC
|
23 | 17 | |
|
24 |
| -LL | let _b = Box::new_in(0, BadAlloc); |
25 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
26 |
| - = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 18 | +LL | handle_alloc_error(Layout::for_value(&0)); |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + |
| 21 | +note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
27 | 22 |
|
28 | 23 | error: aborting due to 1 previous error
|
29 | 24 |
|
0 commit comments