|
1 |
| -custom alloc error handler called! |
| 1 | +custom panic handler called! |
2 | 2 | error: abnormal termination: the program aborted execution
|
3 | 3 | --> $DIR/alloc_error_handler_no_std.rs:LL:CC
|
4 | 4 | |
|
5 | 5 | LL | core::intrinsics::abort();
|
6 | 6 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ the program aborted execution
|
7 | 7 | |
|
8 | 8 | = 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 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 9 | + = note: inside `panic_handler` at $DIR/alloc_error_handler_no_std.rs:LL:CC |
| 10 | + = note: inside `alloc::alloc::__alloc_error_handler::__rdl_oom` at RUSTLIB/alloc/src/alloc.rs:LL:CC |
17 | 11 | = note: inside `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
|
18 | 12 | = 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 | 13 | note: inside `start`
|
22 | 14 | --> $DIR/alloc_error_handler_no_std.rs:LL:CC
|
23 | 15 | |
|
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) |
| 16 | +LL | handle_alloc_error(Layout::for_value(&0)); |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 18 | + |
| 19 | +note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
27 | 20 |
|
28 | 21 | error: aborting due to 1 previous error
|
29 | 22 |
|
0 commit comments