|
| 1 | +error: Undefined Behavior: calling a function with calling convention C using calling convention Rust |
| 2 | + --> RUSTLIB/core/src/ops/function.rs:LL:CC |
| 3 | + | |
| 4 | +LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention C using calling convention Rust |
| 6 | + | |
| 7 | + = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior |
| 8 | + = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information |
| 9 | + = note: BACKTRACE: |
| 10 | + = note: inside `<fn() as std::ops::FnOnce<()>>::call_once - shim(fn())` at RUSTLIB/core/src/ops/function.rs:LL:CC |
| 11 | + = note: inside `std::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>` at RUSTLIB/std/src/sys/backtrace.rs:LL:CC |
| 12 | + = note: inside closure at RUSTLIB/std/src/rt.rs:LL:CC |
| 13 | + = note: inside `std::ops::function::impls::<impl std::ops::FnOnce<()> for &dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe>::call_once` at RUSTLIB/core/src/ops/function.rs:LL:CC |
| 14 | + = note: inside `std::panicking::r#try::do_call::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 15 | + = note: inside `std::panicking::r#try::<i32, &dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe>` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 16 | + = note: inside `std::panic::catch_unwind::<&dyn std::ops::Fn() -> i32 + std::marker::Sync + std::panic::RefUnwindSafe, i32>` at RUSTLIB/std/src/panic.rs:LL:CC |
| 17 | + = note: inside closure at RUSTLIB/std/src/rt.rs:LL:CC |
| 18 | + = note: inside `std::panicking::r#try::do_call::<{closure@std::rt::lang_start_internal::{closure#2}}, isize>` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 19 | + = note: inside `std::panicking::r#try::<isize, {closure@std::rt::lang_start_internal::{closure#2}}>` at RUSTLIB/std/src/panicking.rs:LL:CC |
| 20 | + = note: inside `std::panic::catch_unwind::<{closure@std::rt::lang_start_internal::{closure#2}}, isize>` at RUSTLIB/std/src/panic.rs:LL:CC |
| 21 | + = note: inside `std::rt::lang_start_internal` at RUSTLIB/std/src/rt.rs:LL:CC |
| 22 | + = note: inside `std::rt::lang_start::<()>` at RUSTLIB/std/src/rt.rs:LL:CC |
| 23 | + |
| 24 | +error: aborting due to 1 previous error |
| 25 | + |
0 commit comments