Skip to content

fatal runtime error: Rust cannot catch foreign exceptions #396

@lubaskinc0de

Description

@lubaskinc0de
mod migrations;

mod embedded {
    use refinery::embed_migrations;
    embed_migrations!("./migrations");
}

fn main() {
}
   Compiling migrations v0.1.0 (/home/lubaskin/dreamteams/crates/migrations)
fatal runtime error: Rust cannot catch foreign exceptions, aborting
sccache: Compile terminated by signal 6
error: could not compile `migrations` (bin "migrations")

Caused by:
  process didn't exit successfully: `sccache /home/lubaskin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc --crate-name migrations --edition=2024 crates/migrations/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=130 --crate-type bin --emit=dep-info,link -C opt-level=1 -C embed-bitcode=no -Z codegen-backend=cranelift -C debuginfo=2 -A mismatched_lifetime_syntaxes -A unpredictable_function_pointer_comparisons -C debug-assertions=on --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=30b6be469f6da150 -C extra-filename=-684b89c7268b41da --out-dir /home/lubaskin/dreamteams/target/debug/deps -C linker=/usr/bin/clang -C incremental=/home/lubaskin/dreamteams/target/debug/incremental -C strip=debuginfo -L dependency=/home/lubaskin/dreamteams/target/debug/deps --extern refinery=/home/lubaskin/dreamteams/target/debug/deps/librefinery-67529a26f8c9ece3.rlib -C link-arg=--ld-path=wild` (exit status: 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions