You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: f.abi == Rust || f.abi == RustCall', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:2354
Interesting... The panic message seems to say that the "C" ABI (extern defaluts to "C") should have been rejected at an earlier stage of compilation.
Btw, my understanding is that all you can export by Rust FFI are limited to C function calls. I don't think you can export OOP-style method calls such as obj.method() to C++.
I am doing FFI and this is what i wrote:
Error:
The text was updated successfully, but these errors were encountered: