1 thread 'main' panicked at 'first', $DIR/double_panic.rs:LL:CC
2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3 thread 'main' panicked at 'second', $DIR/double_panic.rs:LL:CC
5 0: std::backtrace_rs::backtrace::miri::trace_unsynchronized
6 at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
7 1: std::backtrace_rs::backtrace::miri::trace
8 at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
9 2: std::backtrace_rs::backtrace::trace_unsynchronized
10 at RUSTLIB/std/src/../../backtrace/src/backtrace/mod.rs:LL:CC
11 3: std::sys_common::backtrace::_print_fmt
12 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
13 4: <std::sys_common::backtrace::_print::DisplayBacktrace as std::fmt::Display>::fmt
14 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
16 at RUSTLIB/core/src/fmt/mod.rs:LL:CC
17 6: <std::sys::PLATFORM::stdio::Stderr as std::io::Write>::write_fmt
18 at RUSTLIB/std/src/io/mod.rs:LL:CC
19 7: std::sys_common::backtrace::_print
20 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
21 8: std::sys_common::backtrace::print
22 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
23 9: std::panicking::default_hook::{closure#1}
24 at RUSTLIB/std/src/panicking.rs:LL:CC
25 10: std::panicking::default_hook
26 at RUSTLIB/std/src/panicking.rs:LL:CC
27 11: std::panicking::rust_panic_with_hook
28 at RUSTLIB/std/src/panicking.rs:LL:CC
29 12: std::rt::begin_panic::{closure#0}
30 at RUSTLIB/std/src/panicking.rs:LL:CC
31 13: std::sys_common::backtrace::__rust_end_short_backtrace
32 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
33 14: std::rt::begin_panic
34 at RUSTLIB/std/src/panicking.rs:LL:CC
35 15: <Foo as std::ops::Drop>::drop
36 at $DIR/double_panic.rs:LL:CC
37 16: std::ptr::drop_in_place - shim(Some(Foo))
38 at RUSTLIB/core/src/ptr/mod.rs:LL:CC
40 at $DIR/double_panic.rs:LL:CC
41 18: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
42 at RUSTLIB/core/src/ops/function.rs:LL:CC
43 19: std::sys_common::backtrace::__rust_begin_short_backtrace
44 at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
45 20: std::rt::lang_start::{closure#0}
46 at RUSTLIB/std/src/rt.rs:LL:CC
47 21: std::ops::function::impls::call_once
48 at RUSTLIB/core/src/ops/function.rs:LL:CC
49 22: std::panicking::r#try::do_call
50 at RUSTLIB/std/src/panicking.rs:LL:CC
51 23: std::panicking::r#try
52 at RUSTLIB/std/src/panicking.rs:LL:CC
53 24: std::panic::catch_unwind
54 at RUSTLIB/std/src/panic.rs:LL:CC
55 25: std::rt::lang_start_internal::{closure#2}
56 at RUSTLIB/std/src/rt.rs:LL:CC
57 26: std::panicking::r#try::do_call
58 at RUSTLIB/std/src/panicking.rs:LL:CC
59 27: std::panicking::r#try
60 at RUSTLIB/std/src/panicking.rs:LL:CC
61 28: std::panic::catch_unwind
62 at RUSTLIB/std/src/panic.rs:LL:CC
63 29: std::rt::lang_start_internal
64 at RUSTLIB/std/src/rt.rs:LL:CC
65 30: std::rt::lang_start
66 at RUSTLIB/std/src/rt.rs:LL:CC
67 thread panicked while panicking. aborting.
68 error: abnormal termination: the program aborted execution
69 --> RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
72 | ^ the program aborted execution
74 = note: inside `std::sys::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
75 = note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
76 = note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
77 = note: inside `std::sys_common::backtrace::__rust_end_short_backtrace::<[closure@std::rt::begin_panic<&str>::{closure#0}], !>` at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
78 note: inside `<Foo as std::ops::Drop>::drop` at RUSTLIB/std/src/panic.rs:LL:CC
79 --> $DIR/double_panic.rs:LL:CC
81 LL | panic!("second");
83 = note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
84 note: inside `main` at $DIR/double_panic.rs:LL:CC
85 --> $DIR/double_panic.rs:LL:CC
89 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
91 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
93 error: aborting due to previous error