2022-03-17 08:49:10 -05:00
thread 'main' panicked at 'first', $DIR/double_panic.rs:LL:CC
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'second', $DIR/double_panic.rs:LL:CC
stack backtrace:
0: std::backtrace_rs::backtrace::miri::trace_unsynchronized
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
2022-03-17 08:49:10 -05:00
1: std::backtrace_rs::backtrace::miri::trace
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/../../backtrace/src/backtrace/miri.rs:LL:CC
2022-03-17 08:49:10 -05:00
2: std::backtrace_rs::backtrace::trace_unsynchronized
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/../../backtrace/src/backtrace/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
3: std::sys_common::backtrace::_print_fmt
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
4: <std::sys_common::backtrace::_print::DisplayBacktrace as std::fmt::Display>::fmt
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
5: std::fmt::write
2022-05-31 17:23:47 -05:00
at RUSTLIB/core/src/fmt/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
6: <std::sys::PLATFORM::stdio::Stderr as std::io::Write>::write_fmt
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/io/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
7: std::sys_common::backtrace::_print
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
8: std::sys_common::backtrace::print
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
9: std::panicking::default_hook::{closure#1}
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
10: std::panicking::default_hook
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
11: std::panicking::rust_panic_with_hook
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
12: std::rt::begin_panic::{closure#0}
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
13: std::sys_common::backtrace::__rust_end_short_backtrace
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
14: std::rt::begin_panic
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
15: <Foo as std::ops::Drop>::drop
at $DIR/double_panic.rs:LL:CC
16: std::ptr::drop_in_place - shim(Some(Foo))
2022-05-31 17:23:47 -05:00
at RUSTLIB/core/src/ptr/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
17: main
at $DIR/double_panic.rs:LL:CC
18: <fn() as std::ops::FnOnce<()>>::call_once - shim(fn())
2022-05-31 17:23:47 -05:00
at RUSTLIB/core/src/ops/function.rs:LL:CC
2022-03-17 08:49:10 -05:00
19: std::sys_common::backtrace::__rust_begin_short_backtrace
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC
2022-03-17 08:49:10 -05:00
20: std::rt::lang_start::{closure#0}
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/rt.rs:LL:CC
2022-03-17 08:49:10 -05:00
21: std::ops::function::impls::call_once
2022-05-31 17:23:47 -05:00
at RUSTLIB/core/src/ops/function.rs:LL:CC
2022-03-17 08:49:10 -05:00
22: std::panicking::r#try::do_call
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
23: std::panicking::r#try
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
24: std::panic::catch_unwind
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panic.rs:LL:CC
2022-03-17 08:49:10 -05:00
25: std::rt::lang_start_internal::{closure#2}
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/rt.rs:LL:CC
2022-03-17 08:49:10 -05:00
26: std::panicking::r#try::do_call
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
27: std::panicking::r#try
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panicking.rs:LL:CC
2022-03-17 08:49:10 -05:00
28: std::panic::catch_unwind
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/panic.rs:LL:CC
2022-03-17 08:49:10 -05:00
29: std::rt::lang_start_internal
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/rt.rs:LL:CC
2022-03-17 08:49:10 -05:00
30: std::rt::lang_start
2022-05-31 17:23:47 -05:00
at RUSTLIB/std/src/rt.rs:LL:CC
2022-03-17 08:49:10 -05:00
thread panicked while panicking. aborting.
error: abnormal termination: the program aborted execution
2022-05-31 17:23:47 -05:00
--> RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
|
2022-05-31 18:00:14 -05:00
LL | ABORT();
| ^ the program aborted execution
2022-05-31 17:23:47 -05:00
|
= note: inside `std::sys::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/PLATFORM/mod.rs:LL:CC
= note: inside `std::panicking::rust_panic_with_hook` at RUSTLIB/std/src/panicking.rs:LL:CC
= note: inside closure at RUSTLIB/std/src/panicking.rs:LL:CC
= 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
note: inside `<Foo as std::ops::Drop>::drop` at RUSTLIB/std/src/panic.rs:LL:CC
2022-03-17 08:49:10 -05:00
--> $DIR/double_panic.rs:LL:CC
|
LL | panic!("second");
2022-05-31 18:00:14 -05:00
| ^
2022-05-31 17:23:47 -05:00
= note: inside `std::ptr::drop_in_place::<Foo> - shim(Some(Foo))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
2022-03-17 08:49:10 -05:00
note: inside `main` at $DIR/double_panic.rs:LL:CC
--> $DIR/double_panic.rs:LL:CC
|
LL | }
| ^
2022-07-19 07:03:39 -05:00
= 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)
2022-03-17 08:49:10 -05:00
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error: aborting due to previous error