[INFO] fetching crate diplomat 0.9.0...
[INFO] testing diplomat-0.9.0 against 1.83.0 for beta-1.84.0-4-retry
[INFO] extracting crate diplomat 0.9.0 into /workspace/builds/worker-6-tc1/source
[INFO] validating manifest of crates.io crate diplomat 0.9.0 on toolchain 1.83.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate diplomat 0.9.0
[INFO] finished tweaking crates.io crate diplomat 0.9.0
[INFO] tweaked toml for crates.io crate diplomat 0.9.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 35 packages to latest compatible versions
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded strck v1.0.0
[INFO] [stderr]   Downloaded diplomat_core v0.9.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cb564857b2b505664c5a9da15510b4e2023139bae9a3da03a1f02a50388fa8d3
[INFO] running `Command { std: "docker" "start" "-a" "cb564857b2b505664c5a9da15510b4e2023139bae9a3da03a1f02a50388fa8d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cb564857b2b505664c5a9da15510b4e2023139bae9a3da03a1f02a50388fa8d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cb564857b2b505664c5a9da15510b4e2023139bae9a3da03a1f02a50388fa8d3", kill_on_drop: false }`
[INFO] [stdout] cb564857b2b505664c5a9da15510b4e2023139bae9a3da03a1f02a50388fa8d3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0660639bb550442334b8809f2665ee1ef06551087ee4cb3a5747d4029cc9c178
[INFO] running `Command { std: "docker" "start" "-a" "0660639bb550442334b8809f2665ee1ef06551087ee4cb3a5747d4029cc9c178", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling serde v1.0.216
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling strck v1.0.0
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling serde_derive v1.0.216
[INFO] [stderr]    Compiling diplomat_core v0.9.0
[INFO] [stderr]    Compiling diplomat v0.9.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.87s
[INFO] running `Command { std: "docker" "inspect" "0660639bb550442334b8809f2665ee1ef06551087ee4cb3a5747d4029cc9c178", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0660639bb550442334b8809f2665ee1ef06551087ee4cb3a5747d4029cc9c178", kill_on_drop: false }`
[INFO] [stdout] 0660639bb550442334b8809f2665ee1ef06551087ee4cb3a5747d4029cc9c178
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] afd05615d1fdb5831b17451a1138d9f83cba9083421cdcb04cf6f8b25c010237
[INFO] running `Command { std: "docker" "start" "-a" "afd05615d1fdb5831b17451a1138d9f83cba9083421cdcb04cf6f8b25c010237", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.168
[INFO] [stderr]    Compiling rustix v0.38.42
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling linux-raw-sys v0.4.14
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling similar v2.6.0
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling diplomat v0.9.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling console v0.15.8
[INFO] [stderr]    Compiling insta v1.41.1
[INFO] [stderr]    Compiling tempfile v3.14.0
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 10.37s
[INFO] running `Command { std: "docker" "inspect" "afd05615d1fdb5831b17451a1138d9f83cba9083421cdcb04cf6f8b25c010237", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "afd05615d1fdb5831b17451a1138d9f83cba9083421cdcb04cf6f8b25c010237", kill_on_drop: false }`
[INFO] [stdout] afd05615d1fdb5831b17451a1138d9f83cba9083421cdcb04cf6f8b25c010237
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 214871a6bc65b459d538970c73b4109904621cf21481af36f654767a355b19d8
[INFO] running `Command { std: "docker" "start" "-a" "214871a6bc65b459d538970c73b4109904621cf21481af36f654767a355b19d8", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/diplomat-40dbd31d1b0b5817)
[INFO] [stdout] 
[INFO] [stdout] running 16 tests
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stdout] test tests::method_taking_mutable_slice ... FAILED
[INFO] [stdout] test tests::method_taking_slice ... FAILED
[INFO] [stdout] test tests::cfged_method ... FAILED
[INFO] [stdout] test tests::method_taking_owned_slice ... FAILED
[INFO] [stdout] test tests::cfgd_struct ... FAILED
[INFO] [stdout] test tests::method_taking_owned_str ... FAILED
[INFO] [stdout] test tests::callback_arguments ... FAILED
[INFO] [stdout] test tests::both_kinds_of_option ... FAILED
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.83.0-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain 1.83.0-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stdout] test tests::method_taking_str ... FAILED
[INFO] [stdout] test tests::mod_with_enum ... FAILED
[INFO] [stdout] test tests::multilevel_borrows ... FAILED
[INFO] [stdout] test tests::slices ... FAILED
[INFO] [stdout] test tests::mod_with_rust_result ... FAILED
[INFO] [stdout] test tests::mod_with_write_result ... FAILED
[INFO] [stdout] test tests::self_params ... FAILED
[INFO] [stdout] test tests::traits ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::method_taking_mutable_slice stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__method_taking_mutable_slice.snap
[INFO] [stdout] Snapshot: method_taking_mutable_slice
[INFO] [stdout] Source: src/lib.rs:777
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn fill_slice(s: &mut [f64]) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn fill_slice(s: &mut [f64]) {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_fill_slice(s: diplomat_runtime::DiplomatSliceMut<f64>) {
[INFO] [stdout]    12       │-        let s = s.into();
[INFO] [stdout]    13       │-        Foo::fill_slice(s)
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn fill_slice (s : & mut [f64]) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_fill_slice (s : diplomat_runtime :: DiplomatSliceMut < f64 >) { let s = s . into () ; Foo :: fill_slice (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::method_taking_mutable_slice' panicked at src/lib.rs:777:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__method_taking_mutable_slice.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec71c6 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec71c6 - diplomat::tests::method_taking_mutable_slice::h84445b25470eb52d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:777:9
[INFO] [stdout]   21:     0x59f7f8ec6757 - diplomat::tests::method_taking_mutable_slice::{{closure}}::ha2f0e58a4b723daa
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:776:37
[INFO] [stdout]   22:     0x59f7f8eea0e6 - core::ops::function::FnOnce::call_once::h1f9d079090b2587a
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::method_taking_slice stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__method_taking_slice.snap
[INFO] [stdout] Snapshot: method_taking_slice
[INFO] [stdout] Source: src/lib.rs:758
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn from_slice(s: &[f64]) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn from_slice(s: &[f64]) {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_from_slice(s: diplomat_runtime::DiplomatSlice<f64>) {
[INFO] [stdout]    12       │-        let s = s.into();
[INFO] [stdout]    13       │-        Foo::from_slice(s)
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn from_slice (s : & [f64]) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_from_slice (s : diplomat_runtime :: DiplomatSlice < f64 >) { let s = s . into () ; Foo :: from_slice (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::method_taking_slice' panicked at src/lib.rs:758:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__method_taking_slice.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec64e7 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec64e7 - diplomat::tests::method_taking_slice::he3a711e5d3a23f08
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:758:9
[INFO] [stdout]   21:     0x59f7f8ec5a97 - diplomat::tests::method_taking_slice::{{closure}}::h770b2b9edce4e53a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:757:29
[INFO] [stdout]   22:     0x59f7f8eea656 - core::ops::function::FnOnce::call_once::hfb8a30edf9d3d4ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::cfged_method stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__cfged_method.snap
[INFO] [stdout] Snapshot: cfged_method
[INFO] [stdout] Source: src/lib.rs:952
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { #[cfg(feature = "foo")] pub fn bar(s: u8) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        #[cfg(feature = "foo")]
[INFO] [stdout]     5       │-        pub fn bar(s: u8) {
[INFO] [stdout]     6       │-            unimplemented!()
[INFO] [stdout]     7       │-        }
[INFO] [stdout]     8       │-    }
[INFO] [stdout]     9       │-    use core::ffi::c_void;
[INFO] [stdout]    10       │-    use diplomat_runtime::*;
[INFO] [stdout]    11       │-    #[no_mangle]
[INFO] [stdout]    12       │-    #[cfg(feature = "foo")]
[INFO] [stdout]    13       │-    extern "C" fn Foo_bar(s: u8) {
[INFO] [stdout]    14       │-        Foo::bar(s)
[INFO] [stdout]    15       │-    }
[INFO] [stdout]    16       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { # [cfg (feature = "foo")] pub fn bar (s : u8) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] # [cfg (feature = "foo")] extern "C" fn Foo_bar (s : u8) { Foo :: bar (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::cfged_method' panicked at src/lib.rs:952:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__cfged_method.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ecec03 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ecec03 - diplomat::tests::cfged_method::h388f04ea9f404122
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:952:9
[INFO] [stdout]   21:     0x59f7f8ece087 - diplomat::tests::cfged_method::{{closure}}::h32b005eae774a213
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:951:22
[INFO] [stdout]   22:     0x59f7f8eea5d6 - core::ops::function::FnOnce::call_once::hf7a6ccd3f3688e5d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::method_taking_owned_slice stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__method_taking_owned_slice.snap
[INFO] [stdout] Snapshot: method_taking_owned_slice
[INFO] [stdout] Source: src/lib.rs:796
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn fill_slice(s: Box<[u16]>) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn fill_slice(s: Box<[u16]>) {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_fill_slice(s: diplomat_runtime::DiplomatOwnedSlice<u16>) {
[INFO] [stdout]    12       │-        let s = s.into();
[INFO] [stdout]    13       │-        Foo::fill_slice(s)
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn fill_slice (s : Box < [u16] >) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_fill_slice (s : diplomat_runtime :: DiplomatOwnedSlice < u16 >) { let s = s . into () ; Foo :: fill_slice (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::method_taking_owned_slice' panicked at src/lib.rs:796:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__method_taking_owned_slice.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec7eb9 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec7eb9 - diplomat::tests::method_taking_owned_slice::h4afbb1cb249039d6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:796:9
[INFO] [stdout]   21:     0x59f7f8ec7437 - diplomat::tests::method_taking_owned_slice::{{closure}}::hcf56fd5e6aae123e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:795:35
[INFO] [stdout]   22:     0x59f7f8eea346 - core::ops::function::FnOnce::call_once::hb516c8353db67515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::cfgd_struct stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__cfgd_struct.snap
[INFO] [stdout] Snapshot: cfgd_struct
[INFO] [stdout] Source: src/lib.rs:990
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         #[diplomat::opaque] #[cfg(feature = "foo")] struct Foo {}
[INFO] [stdout]         #[cfg(feature = "foo")] impl Foo
[INFO] [stdout]         { pub fn bar(s: u8) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[cfg(feature = "foo")]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    #[cfg(feature = "foo")]
[INFO] [stdout]     4       │-    impl Foo {
[INFO] [stdout]     5       │-        pub fn bar(s: u8) {
[INFO] [stdout]     6       │-            unimplemented!()
[INFO] [stdout]     7       │-        }
[INFO] [stdout]     8       │-    }
[INFO] [stdout]     9       │-    use core::ffi::c_void;
[INFO] [stdout]    10       │-    use diplomat_runtime::*;
[INFO] [stdout]    11       │-    #[no_mangle]
[INFO] [stdout]    12       │-    #[cfg(feature = "foo")]
[INFO] [stdout]    13       │-    extern "C" fn Foo_bar(s: u8) {
[INFO] [stdout]    14       │-        Foo::bar(s)
[INFO] [stdout]    15       │-    }
[INFO] [stdout]    16       │-    #[no_mangle]
[INFO] [stdout]    17       │-    #[cfg(feature = "foo")]
[INFO] [stdout]    18       │-    extern "C" fn Foo_destroy(this: Box<Foo>) {}
[INFO] [stdout]    19       │-}
[INFO] [stdout]           0 │+mod ffi { # [cfg (feature = "foo")] struct Foo { } # [cfg (feature = "foo")] impl Foo { pub fn bar (s : u8) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] # [cfg (feature = "foo")] extern "C" fn Foo_bar (s : u8) { Foo :: bar (s) } # [no_mangle] # [cfg (feature = "foo")] extern "C" fn Foo_destroy (this : Box < Foo >) { } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::cfgd_struct' panicked at src/lib.rs:990:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__cfgd_struct.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ed0b2d - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ed0b2d - diplomat::tests::cfgd_struct::h3dab0c8a9bc9471a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:990:9
[INFO] [stdout]   21:     0x59f7f8ecfd67 - diplomat::tests::cfgd_struct::{{closure}}::h3a29bb6f77612ad7
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:989:21
[INFO] [stdout]   22:     0x59f7f8eea1d6 - core::ops::function::FnOnce::call_once::h5b3ccaacd0cb92a4
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::method_taking_owned_str stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__method_taking_owned_str.snap
[INFO] [stdout] Snapshot: method_taking_owned_str
[INFO] [stdout] Source: src/lib.rs:815
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn something_with_str(s: Box<str>) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn something_with_str(s: Box<str>) {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_something_with_str(s: diplomat_runtime::DiplomatOwnedUTF8StrSlice) {
[INFO] [stdout]    12       │-        let s = s.into();
[INFO] [stdout]    13       │-        Foo::something_with_str(s)
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn something_with_str (s : Box < str >) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_something_with_str (s : diplomat_runtime :: DiplomatOwnedUTF8StrSlice) { let s = s . into () ; Foo :: something_with_str (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::method_taking_owned_str' panicked at src/lib.rs:815:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__method_taking_owned_str.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec8b1f - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec8b1f - diplomat::tests::method_taking_owned_str::hadf8c73af533f915
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:815:9
[INFO] [stdout]   21:     0x59f7f8ec8127 - diplomat::tests::method_taking_owned_str::{{closure}}::hc8e145bd452f839d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:814:33
[INFO] [stdout]   22:     0x59f7f8eea556 - core::ops::function::FnOnce::call_once::hf54b9ecac143b906
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::callback_arguments stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__callback_arguments.snap
[INFO] [stdout] Snapshot: callback_arguments
[INFO] [stdout] Source: src/lib.rs:1011
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         pub struct Wrapper { cant_be_empty: bool, } pub struct TestingStruct
[INFO] [stdout]         { x: i32, y: i32, } impl Wrapper
[INFO] [stdout]         {
[INFO] [stdout]             pub fn test_multi_arg_callback(f: impl Fn(i32) -> i32, x: i32) ->
[INFO] [stdout]             i32 { f(10 + x) } pub fn
[INFO] [stdout]             test_multiarg_void_callback(f: impl Fn(i32, &str))
[INFO] [stdout]             { f(-10, "hello it's a string\0"); } pub fn
[INFO] [stdout]             test_mod_array(g: impl Fn(&[u8]))
[INFO] [stdout]             {
[INFO] [stdout]                 let bytes: Vec<u8> = vec![0x11, 0x22];
[INFO] [stdout]                 g(bytes.as_slice().into());
[INFO] [stdout]             } pub fn test_no_args(h: impl Fn()) -> i32 { h(); -5 } pub fn
[INFO] [stdout]             test_cb_with_struct(f: impl Fn(TestingStruct) -> i32) -> i32
[INFO] [stdout]             { let arg = TestingStruct { x: 1, y: 5, }; f(arg) } pub fn
[INFO] [stdout]             test_multiple_cb_args(f: impl Fn() -> i32, g: impl Fn(i32) -> i32)
[INFO] [stdout]             -> i32 { f() + g(5) }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    pub struct Wrapper {
[INFO] [stdout]     3       │-        cant_be_empty: bool,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    #[repr(C)]
[INFO] [stdout]     6       │-    pub struct TestingStruct {
[INFO] [stdout]     7       │-        x: i32,
[INFO] [stdout]     8       │-        y: i32,
[INFO] [stdout]     9       │-    }
[INFO] [stdout]    10       │-    impl Wrapper {
[INFO] [stdout]    11       │-        pub fn test_multi_arg_callback(f: impl Fn(i32) -> i32, x: i32) -> i32 {
[INFO] [stdout]    12       │-            f(10 + x)
[INFO] [stdout]    13       │-        }
[INFO] [stdout]    14       │-        pub fn test_multiarg_void_callback(f: impl Fn(i32, &str)) {
[INFO] [stdout]    15       │-            f(-10, "hello it's a string\0");
[INFO] [stdout]    16       │-        }
[INFO] [stdout]    17       │-        pub fn test_mod_array(g: impl Fn(&[u8])) {
[INFO] [stdout]    18       │-            let bytes: Vec<u8> = vec![0x11, 0x22];
[INFO] [stdout]    19       │-            g(bytes.as_slice().into());
[INFO] [stdout]    20       │-        }
[INFO] [stdout]    21       │-        pub fn test_no_args(h: impl Fn()) -> i32 {
[INFO] [stdout]    22       │-            h();
[INFO] [stdout]    23       │-            -5
[INFO] [stdout]    24       │-        }
[INFO] [stdout]    25       │-        pub fn test_cb_with_struct(f: impl Fn(TestingStruct) -> i32) -> i32 {
[INFO] [stdout]    26       │-            let arg = TestingStruct { x: 1, y: 5 };
[INFO] [stdout]    27       │-            f(arg)
[INFO] [stdout]    28       │-        }
[INFO] [stdout]    29       │-        pub fn test_multiple_cb_args(f: impl Fn() -> i32, g: impl Fn(i32) -> i32) -> i32 {
[INFO] [stdout]    30       │-            f() + g(5)
[INFO] [stdout]    31       │-        }
[INFO] [stdout]    32       │-    }
[INFO] [stdout]    33       │-    use core::ffi::c_void;
[INFO] [stdout]    34       │-    use diplomat_runtime::*;
[INFO] [stdout]    35       │-    #[no_mangle]
[INFO] [stdout]    36       │-    extern "C" fn Wrapper_test_multi_arg_callback(f: DiplomatCallback<i32>, x: i32) -> i32 {
[INFO] [stdout]    37       │-        let f = move |arg0: i32| unsafe {
[INFO] [stdout]    38       │-            std::mem::transmute::<
[INFO] [stdout]    39       │-                unsafe extern "C" fn(*const c_void, ...) -> i32,
[INFO] [stdout]    40       │-                unsafe extern "C" fn(*const c_void, i32) -> i32,
[INFO] [stdout]    41       │-            >(f.run_callback)(f.data, arg0)
[INFO] [stdout]    42       │-        };
[INFO] [stdout]    43       │-        Wrapper::test_multi_arg_callback(f, x)
[INFO] [stdout]    44       │-    }
[INFO] [stdout]    45       │-    #[no_mangle]
[INFO] [stdout]    46       │-    extern "C" fn Wrapper_test_multiarg_void_callback(f: DiplomatCallback<()>) {
[INFO] [stdout]    47       │-        let f = move |arg0: i32, arg1: &str| unsafe {
[INFO] [stdout]    48       │-            let arg1: diplomat_runtime::DiplomatUtf8StrSlice = arg1.into();
[INFO] [stdout]    49       │-            std::mem::transmute::<
[INFO] [stdout]    50       │-                unsafe extern "C" fn(*const c_void, ...) -> (),
[INFO] [stdout]    51       │-                unsafe extern "C" fn(
[INFO] [stdout]    52       │-                    *const c_void,
[INFO] [stdout]    53       │-                    i32,
[INFO] [stdout]    54       │-                    diplomat_runtime::DiplomatUtf8StrSlice,
[INFO] [stdout]    55       │-                ) -> (),
[INFO] [stdout]    56       │-            >(f.run_callback)(f.data, arg0, arg1)
[INFO] [stdout]    57       │-        };
[INFO] [stdout]    58       │-        Wrapper::test_multiarg_void_callback(f)
[INFO] [stdout]    59       │-    }
[INFO] [stdout]    60       │-    #[no_mangle]
[INFO] [stdout]    61       │-    extern "C" fn Wrapper_test_mod_array(g: DiplomatCallback<()>) {
[INFO] [stdout]    62       │-        let g = move |arg0: &[u8]| unsafe {
[INFO] [stdout]    63       │-            let arg0: diplomat_runtime::DiplomatSlice<u8> = arg0.into();
[INFO] [stdout]    64       │-            std::mem::transmute::<
[INFO] [stdout]    65       │-                unsafe extern "C" fn(*const c_void, ...) -> (),
[INFO] [stdout]    66       │-                unsafe extern "C" fn(*const c_void, diplomat_runtime::DiplomatSlice<u8>) -> (),
[INFO] [stdout]    67       │-            >(g.run_callback)(g.data, arg0)
[INFO] [stdout]    68       │-        };
[INFO] [stdout]    69       │-        Wrapper::test_mod_array(g)
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    #[no_mangle]
[INFO] [stdout]    72       │-    extern "C" fn Wrapper_test_no_args(h: DiplomatCallback<()>) -> i32 {
[INFO] [stdout]    73       │-        let h = move || unsafe {
[INFO] [stdout]    74       │-            std::mem::transmute::<
[INFO] [stdout]    75       │-                unsafe extern "C" fn(*const c_void, ...) -> (),
[INFO] [stdout]    76       │-                unsafe extern "C" fn(*const c_void) -> (),
[INFO] [stdout]    77       │-            >(h.run_callback)(h.data)
[INFO] [stdout]    78       │-        };
[INFO] [stdout]    79       │-        Wrapper::test_no_args(h)
[INFO] [stdout]    80       │-    }
[INFO] [stdout]    81       │-    #[no_mangle]
[INFO] [stdout]    82       │-    extern "C" fn Wrapper_test_cb_with_struct(f: DiplomatCallback<i32>) -> i32 {
[INFO] [stdout]    83       │-        let f = move |arg0: TestingStruct| unsafe {
[INFO] [stdout]    84       │-            std::mem::transmute::<
[INFO] [stdout]    85       │-                unsafe extern "C" fn(*const c_void, ...) -> i32,
[INFO] [stdout]    86       │-                unsafe extern "C" fn(*const c_void, TestingStruct) -> i32,
[INFO] [stdout]    87       │-            >(f.run_callback)(f.data, arg0)
[INFO] [stdout]    88       │-        };
[INFO] [stdout]    89       │-        Wrapper::test_cb_with_struct(f)
[INFO] [stdout]    90       │-    }
[INFO] [stdout]    91       │-    #[no_mangle]
[INFO] [stdout]    92       │-    extern "C" fn Wrapper_test_multiple_cb_args(
[INFO] [stdout]    93       │-        f: DiplomatCallback<i32>,
[INFO] [stdout]    94       │-        g: DiplomatCallback<i32>,
[INFO] [stdout]    95       │-    ) -> i32 {
[INFO] [stdout]    96       │-        let f = move || unsafe {
[INFO] [stdout]    97       │-            std::mem::transmute::<
[INFO] [stdout]    98       │-                unsafe extern "C" fn(*const c_void, ...) -> i32,
[INFO] [stdout]    99       │-                unsafe extern "C" fn(*const c_void) -> i32,
[INFO] [stdout]   100       │-            >(f.run_callback)(f.data)
[INFO] [stdout]   101       │-        };
[INFO] [stdout]   102       │-        let g = move |arg0: i32| unsafe {
[INFO] [stdout]   103       │-            std::mem::transmute::<
[INFO] [stdout]   104       │-                unsafe extern "C" fn(*const c_void, ...) -> i32,
[INFO] [stdout]   105       │-                unsafe extern "C" fn(*const c_void, i32) -> i32,
[INFO] [stdout]   106       │-            >(g.run_callback)(g.data, arg0)
[INFO] [stdout]   107       │-        };
[INFO] [stdout]   108       │-        Wrapper::test_multiple_cb_args(f, g)
[INFO] [stdout]   109       │-    }
[INFO] [stdout]   110       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] pub struct Wrapper { cant_be_empty : bool , } # [repr (C)] pub struct TestingStruct { x : i32 , y : i32 , } impl Wrapper { pub fn test_multi_arg_callback (f : impl Fn (i32) -> i32 , x : i32) -> i32 { f (10 + x) } pub fn test_multiarg_void_callback (f : impl Fn (i32 , & str)) { f (- 10 , "hello it's a string\0") ; } pub fn test_mod_array (g : impl Fn (& [u8])) { let bytes : Vec < u8 > = vec ! [0x11 , 0x22] ; g (bytes . as_slice () . into ()) ; } pub fn test_no_args (h : impl Fn ()) -> i32 { h () ; - 5 } pub fn test_cb_with_struct (f : impl Fn (TestingStruct) -> i32) -> i32 { let arg = TestingStruct { x : 1 , y : 5 , } ; f (arg) } pub fn test_multiple_cb_args (f : impl Fn () -> i32 , g : impl Fn (i32) -> i32) -> i32 { f () + g (5) } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Wrapper_test_multi_arg_callback (f : DiplomatCallback < i32 > , x : i32) -> i32 { let f = move | arg0 : i32 , | unsafe { std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> i32 , unsafe extern "C" fn (* const c_void , i32 ,) -> i32 > (f . run_callback) (f . data , arg0 ,) } ; Wrapper :: test_multi_arg_callback (f , x) } # [no_mangle] extern "C" fn Wrapper_test_multiarg_void_callback (f : DiplomatCallback < () >) { let f = move | arg0 : i32 , arg1 : & str , | unsafe { let arg1 : diplomat_runtime :: DiplomatUtf8StrSlice = arg1 . into () ; std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> () , unsafe extern "C" fn (* const c_void , i32 , diplomat_runtime :: DiplomatUtf8StrSlice ,) -> () > (f . run_callback) (f . data , arg0 , arg1 ,) } ; Wrapper :: test_multiarg_void_callback (f) } # [no_mangle] extern "C" fn Wrapper_test_mod_array (g : DiplomatCallback < () >) { let g = move | arg0 : & [u8] , | unsafe { let arg0 : diplomat_runtime :: DiplomatSlice < u8 > = arg0 . into () ; std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> () , unsafe extern "C" fn (* const c_void , diplomat_runtime :: DiplomatSlice < u8 > ,) -> () > (g . run_callback) (g . data , arg0 ,) } ; Wrapper :: test_mod_array (g) } # [no_mangle] extern "C" fn Wrapper_test_no_args (h : DiplomatCallback < () >) -> i32 { let h = move | | unsafe { std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> () , unsafe extern "C" fn (* const c_void ,) -> () > (h . run_callback) (h . data ,) } ; Wrapper :: test_no_args (h) } # [no_mangle] extern "C" fn Wrapper_test_cb_with_struct (f : DiplomatCallback < i32 >) -> i32 { let f = move | arg0 : TestingStruct , | unsafe { std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> i32 , unsafe extern "C" fn (* const c_void , TestingStruct ,) -> i32 > (f . run_callback) (f . data , arg0 ,) } ; Wrapper :: test_cb_with_struct (f) } # [no_mangle] extern "C" fn Wrapper_test_multiple_cb_args (f : DiplomatCallback < i32 > , g : DiplomatCallback < i32 >) -> i32 { let f = move | | unsafe { std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> i32 , unsafe extern "C" fn (* const c_void ,) -> i32 > (f . run_callback) (f . data ,) } ; let g = move | arg0 : i32 , | unsafe { std :: mem :: transmute :: < unsafe extern "C" fn (* const c_void , ...) -> i32 , unsafe extern "C" fn (* const c_void , i32 ,) -> i32 > (g . run_callback) (g . data , arg0 ,) } ; Wrapper :: test_multiple_cb_args (f , g) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::callback_arguments' panicked at src/lib.rs:1011:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__callback_arguments.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ed3429 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ed3429 - diplomat::tests::callback_arguments::h8481b26bb0791719
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1011:9
[INFO] [stdout]   21:     0x59f7f8ed0d97 - diplomat::tests::callback_arguments::{{closure}}::h173ceae5479b6348
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1010:28
[INFO] [stdout]   22:     0x59f7f8eea596 - core::ops::function::FnOnce::call_once::hf5776fe0d63620aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::both_kinds_of_option stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__both_kinds_of_option.snap
[INFO] [stdout] Snapshot: both_kinds_of_option
[INFO] [stdout] Source: src/lib.rs:1099
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         use diplomat_runtime::DiplomatOption; #[diplomat::opaque] struct Foo
[INFO] [stdout]         {} struct CustomStruct
[INFO] [stdout]         { num: u8, b: bool, diplo_option: DiplomatOption<u8>, } impl Foo
[INFO] [stdout]         {
[INFO] [stdout]             pub fn diplo_option_u8(x: DiplomatOption<u8>) ->
[INFO] [stdout]             DiplomatOption<u8> { x } pub fn
[INFO] [stdout]             diplo_option_ref(x: DiplomatOption<&Foo>) -> DiplomatOption<&Foo>
[INFO] [stdout]             { x } pub fn diplo_option_box() -> DiplomatOption<Box<Foo>> { x }
[INFO] [stdout]             pub fn diplo_option_struct(x: DiplomatOption<CustomStruct>) ->
[INFO] [stdout]             DiplomatOption<CustomStruct> { x } pub fn option_u8(x: Option<u8>)
[INFO] [stdout]             -> Option<u8> { x } pub fn option_ref(x: Option<&Foo>) ->
[INFO] [stdout]             Option<&Foo> { x } pub fn option_box() -> Option<Box<Foo>> { x }
[INFO] [stdout]             pub fn option_struct(x: Option<CustomStruct>) ->
[INFO] [stdout]             Option<CustomStruct> { x }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    use diplomat_runtime::DiplomatOption;
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    #[repr(C)]
[INFO] [stdout]     4       │-    struct CustomStruct {
[INFO] [stdout]     5       │-        num: u8,
[INFO] [stdout]     6       │-        b: bool,
[INFO] [stdout]     7       │-        diplo_option: DiplomatOption<u8>,
[INFO] [stdout]     8       │-    }
[INFO] [stdout]     9       │-    impl Foo {
[INFO] [stdout]    10       │-        pub fn diplo_option_u8(x: DiplomatOption<u8>) -> DiplomatOption<u8> {
[INFO] [stdout]    11       │-            x
[INFO] [stdout]    12       │-        }
[INFO] [stdout]    13       │-        pub fn diplo_option_ref(x: DiplomatOption<&Foo>) -> DiplomatOption<&Foo> {
[INFO] [stdout]    14       │-            x
[INFO] [stdout]    15       │-        }
[INFO] [stdout]    16       │-        pub fn diplo_option_box() -> DiplomatOption<Box<Foo>> {
[INFO] [stdout]    17       │-            x
[INFO] [stdout]    18       │-        }
[INFO] [stdout]    19       │-        pub fn diplo_option_struct(
[INFO] [stdout]    20       │-            x: DiplomatOption<CustomStruct>,
[INFO] [stdout]    21       │-        ) -> DiplomatOption<CustomStruct> {
[INFO] [stdout]    22       │-            x
[INFO] [stdout]    23       │-        }
[INFO] [stdout]    24       │-        pub fn option_u8(x: Option<u8>) -> Option<u8> {
[INFO] [stdout]    25       │-            x
[INFO] [stdout]    26       │-        }
[INFO] [stdout]    27       │-        pub fn option_ref(x: Option<&Foo>) -> Option<&Foo> {
[INFO] [stdout]    28       │-            x
[INFO] [stdout]    29       │-        }
[INFO] [stdout]    30       │-        pub fn option_box() -> Option<Box<Foo>> {
[INFO] [stdout]    31       │-            x
[INFO] [stdout]    32       │-        }
[INFO] [stdout]    33       │-        pub fn option_struct(x: Option<CustomStruct>) -> Option<CustomStruct> {
[INFO] [stdout]    34       │-            x
[INFO] [stdout]    35       │-        }
[INFO] [stdout]    36       │-    }
[INFO] [stdout]    37       │-    use core::ffi::c_void;
[INFO] [stdout]    38       │-    use diplomat_runtime::*;
[INFO] [stdout]    39       │-    #[no_mangle]
[INFO] [stdout]    40       │-    extern "C" fn Foo_diplo_option_u8(
[INFO] [stdout]    41       │-        x: diplomat_runtime::DiplomatOption<u8>,
[INFO] [stdout]    42       │-    ) -> diplomat_runtime::DiplomatResult<u8, ()> {
[INFO] [stdout]    43       │-        Foo::diplo_option_u8(x)
[INFO] [stdout]    44       │-    }
[INFO] [stdout]    45       │-    #[no_mangle]
[INFO] [stdout]    46       │-    extern "C" fn Foo_diplo_option_ref(x: Option<&Foo>) -> diplomat_runtime::DiplomatOption<&Foo> {
[INFO] [stdout]    47       │-        let x = x.into();
[INFO] [stdout]    48       │-        Foo::diplo_option_ref(x).into()
[INFO] [stdout]    49       │-    }
[INFO] [stdout]    50       │-    #[no_mangle]
[INFO] [stdout]    51       │-    extern "C" fn Foo_diplo_option_box() -> diplomat_runtime::DiplomatOption<Box<Foo>> {
[INFO] [stdout]    52       │-        Foo::diplo_option_box().into()
[INFO] [stdout]    53       │-    }
[INFO] [stdout]    54       │-    #[no_mangle]
[INFO] [stdout]    55       │-    extern "C" fn Foo_diplo_option_struct(
[INFO] [stdout]    56       │-        x: diplomat_runtime::DiplomatOption<CustomStruct>,
[INFO] [stdout]    57       │-    ) -> diplomat_runtime::DiplomatResult<CustomStruct, ()> {
[INFO] [stdout]    58       │-        Foo::diplo_option_struct(x)
[INFO] [stdout]    59       │-    }
[INFO] [stdout]    60       │-    #[no_mangle]
[INFO] [stdout]    61       │-    extern "C" fn Foo_option_u8(
[INFO] [stdout]    62       │-        x: diplomat_runtime::DiplomatOption<u8>,
[INFO] [stdout]    63       │-    ) -> diplomat_runtime::DiplomatResult<u8, ()> {
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout]    64       │-        let x = x.into();
[INFO] [stdout]    65       │-        Foo::option_u8(x).ok_or(()).into()
[INFO] [stdout]    66       │-    }
[INFO] [stdout]    67       │-    #[no_mangle]
[INFO] [stdout]    68       │-    extern "C" fn Foo_option_ref(x: Option<&Foo>) -> Option<&Foo> {
[INFO] [stdout]    69       │-        Foo::option_ref(x)
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    #[no_mangle]
[INFO] [stdout]    72       │-    extern "C" fn Foo_option_box() -> Option<Box<Foo>> {
[INFO] [stdout]    73       │-        Foo::option_box()
[INFO] [stdout]    74       │-    }
[INFO] [stdout]    75       │-    #[no_mangle]
[INFO] [stdout]    76       │-    extern "C" fn Foo_option_struct(
[INFO] [stdout]    77       │-        x: diplomat_runtime::DiplomatOption<CustomStruct>,
[INFO] [stdout]    78       │-    ) -> diplomat_runtime::DiplomatResult<CustomStruct, ()> {
[INFO] [stdout]    79       │-        let x = x.into();
[INFO] [stdout]    80       │-        Foo::option_struct(x).ok_or(()).into()
[INFO] [stdout]    81       │-    }
[INFO] [stdout]    82       │-    #[no_mangle]
[INFO] [stdout]    83       │-    extern "C" fn Foo_destroy(this: Box<Foo>) {}
[INFO] [stdout]    84       │-}
[INFO] [stdout]           0 │+mod ffi { use diplomat_runtime :: DiplomatOption ; struct Foo { } # [repr (C)] struct CustomStruct { num : u8 , b : bool , diplo_option : DiplomatOption < u8 > , } impl Foo { pub fn diplo_option_u8 (x : DiplomatOption < u8 >) -> DiplomatOption < u8 > { x } pub fn diplo_option_ref (x : DiplomatOption < & Foo >) -> DiplomatOption < & Foo > { x } pub fn diplo_option_box () -> DiplomatOption < Box < Foo > > { x } pub fn diplo_option_struct (x : DiplomatOption < CustomStruct >) -> DiplomatOption < CustomStruct > { x } pub fn option_u8 (x : Option < u8 >) -> Option < u8 > { x } pub fn option_ref (x : Option < & Foo >) -> Option < & Foo > { x } pub fn option_box () -> Option < Box < Foo > > { x } pub fn option_struct (x : Option < CustomStruct >) -> Option < CustomStruct > { x } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_diplo_option_u8 (x : diplomat_runtime :: DiplomatOption < u8 >) -> diplomat_runtime :: DiplomatResult < u8 , () > { Foo :: diplo_option_u8 (x) } # [no_mangle] extern "C" fn Foo_diplo_option_ref (x : Option < & Foo >) -> diplomat_runtime :: DiplomatOption < & Foo > { let x = x . into () ; Foo :: diplo_option_ref (x) . into () } # [no_mangle] extern "C" fn Foo_diplo_option_box () -> diplomat_runtime :: DiplomatOption < Box < Foo > > { Foo :: diplo_option_box () . into () } # [no_mangle] extern "C" fn Foo_diplo_option_struct (x : diplomat_runtime :: DiplomatOption < CustomStruct >) -> diplomat_runtime :: DiplomatResult < CustomStruct , () > { Foo :: diplo_option_struct (x) } # [no_mangle] extern "C" fn Foo_option_u8 (x : diplomat_runtime :: DiplomatOption < u8 >) -> diplomat_runtime :: DiplomatResult < u8 , () > { let x = x . into () ; Foo :: option_u8 (x) . ok_or (()) . into () } # [no_mangle] extern "C" fn Foo_option_ref (x : Option < & Foo >) -> Option < & Foo > { Foo :: option_ref (x) } # [no_mangle] extern "C" fn Foo_option_box () -> Option < Box < Foo > > { Foo :: option_box () } # [no_mangle] extern "C" fn Foo_option_struct (x : diplomat_runtime :: DiplomatOption < CustomStruct >) -> diplomat_runtime :: DiplomatResult < CustomStruct , () > { let x = x . into () ; Foo :: option_struct (x) . ok_or (()) . into () } # [no_mangle] extern "C" fn Foo_destroy (this : Box < Foo >) { } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::both_kinds_of_option' panicked at src/lib.rs:1099:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__both_kinds_of_option.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ed7276 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ed7276 - diplomat::tests::both_kinds_of_option::hfe80106ba4a8a82b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1099:9
[INFO] [stdout]   21:     0x59f7f8ed5377 - diplomat::tests::both_kinds_of_option::{{closure}}::h8e043846038b629b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1098:30
[INFO] [stdout]   22:     0x59f7f8eea286 - core::ops::function::FnOnce::call_once::h7261b47aab23c3d2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::method_taking_str stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__method_taking_str.snap
[INFO] [stdout] Snapshot: method_taking_str
[INFO] [stdout] Source: src/lib.rs:674
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn from_str(s: &DiplomatStr) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn from_str(s: &DiplomatStr) {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_from_str(s: diplomat_runtime::DiplomatStrSlice) {
[INFO] [stdout]    12       │-        let s = s.into();
[INFO] [stdout]    13       │-        Foo::from_str(s)
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn from_str (s : & DiplomatStr) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_from_str (s : diplomat_runtime :: DiplomatStrSlice) { let s = s . into () ; Foo :: from_str (s) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::method_taking_str' panicked at src/lib.rs:674:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__method_taking_str.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec167d - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec167d - diplomat::tests::method_taking_str::h8a24cdb8086a631e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:674:9
[INFO] [stdout]   21:     0x59f7f8ec0cb7 - diplomat::tests::method_taking_str::{{closure}}::hd034262c5881d844
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:673:27
[INFO] [stdout]   22:     0x59f7f8eea3b6 - core::ops::function::FnOnce::call_once::hc3cb1d98e2508260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::mod_with_enum stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__mod_with_enum.snap
[INFO] [stdout] Snapshot: mod_with_enum
[INFO] [stdout] Source: src/lib.rs:834
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         enum Abc { A, B = 123, } impl Abc
[INFO] [stdout]         { pub fn do_something(&self) { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    #[derive(Clone, Copy)]
[INFO] [stdout]     3       │-    enum Abc {
[INFO] [stdout]     4       │-        A,
[INFO] [stdout]     5       │-        B = 123,
[INFO] [stdout]     6       │-    }
[INFO] [stdout]     7       │-    impl Abc {
[INFO] [stdout]     8       │-        pub fn do_something(&self) {
[INFO] [stdout]     9       │-            unimplemented!()
[INFO] [stdout]    10       │-        }
[INFO] [stdout]    11       │-    }
[INFO] [stdout]    12       │-    use core::ffi::c_void;
[INFO] [stdout]    13       │-    use diplomat_runtime::*;
[INFO] [stdout]    14       │-    #[no_mangle]
[INFO] [stdout]    15       │-    extern "C" fn Abc_do_something(this: &Abc) {
[INFO] [stdout]    16       │-        this.do_something()
[INFO] [stdout]    17       │-    }
[INFO] [stdout]    18       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] # [derive (Clone , Copy)] enum Abc { A , B = 123 , } impl Abc { pub fn do_something (& self) { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Abc_do_something (this : & Abc) { this . do_something () } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::mod_with_enum' panicked at src/lib.rs:834:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__mod_with_enum.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec97fd - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec97fd - diplomat::tests::mod_with_enum::h6caa1e9f3953c1ff
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:834:9
[INFO] [stdout]   21:     0x59f7f8ec8d87 - diplomat::tests::mod_with_enum::{{closure}}::ha71e08ba26f2d28d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:833:23
[INFO] [stdout]   22:     0x59f7f8eea426 - core::ops::function::FnOnce::call_once::hdbafa15881a54260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::multilevel_borrows stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__multilevel_borrows.snap
[INFO] [stdout] Snapshot: multilevel_borrows
[INFO] [stdout] Source: src/lib.rs:894
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         #[diplomat::opaque] struct Foo<'a>(&'a str); #[diplomat::opaque]
[INFO] [stdout]         struct Bar<'b, 'a: 'b>(&'b Foo<'a>); struct Baz<'x, 'y>
[INFO] [stdout]         { foo: &'y Foo<'x>, } impl<'a> Foo<'a>
[INFO] [stdout]         {
[INFO] [stdout]             pub fn new(x: &'a str) -> Box<Foo<'a>> { unimplemented!() } pub fn
[INFO] [stdout]             get_bar<'b>(&'b self) -> Box<Bar<'b, 'a>> { unimplemented!() } pub
[INFO] [stdout]             fn get_baz<'b>(&'b self) -> Baz<'b, 'a> { Bax { foo: self } }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    struct Foo<'a>(&'a str);
[INFO] [stdout]     2       │-    struct Bar<'b, 'a: 'b>(&'b Foo<'a>);
[INFO] [stdout]     3       │-    #[repr(C)]
[INFO] [stdout]     4       │-    struct Baz<'x, 'y> {
[INFO] [stdout]     5       │-        foo: &'y Foo<'x>,
[INFO] [stdout]     6       │-    }
[INFO] [stdout]     7       │-    impl<'a> Foo<'a> {
[INFO] [stdout]     8       │-        pub fn new(x: &'a str) -> Box<Foo<'a>> {
[INFO] [stdout]     9       │-            unimplemented!()
[INFO] [stdout]    10       │-        }
[INFO] [stdout]    11       │-        pub fn get_bar<'b>(&'b self) -> Box<Bar<'b, 'a>> {
[INFO] [stdout]    12       │-            unimplemented!()
[INFO] [stdout]    13       │-        }
[INFO] [stdout]    14       │-        pub fn get_baz<'b>(&'b self) -> Baz<'b, 'a> {
[INFO] [stdout]    15       │-            Bax { foo: self }
[INFO] [stdout]    16       │-        }
[INFO] [stdout]    17       │-    }
[INFO] [stdout]    18       │-    use core::ffi::c_void;
[INFO] [stdout]    19       │-    use diplomat_runtime::*;
[INFO] [stdout]    20       │-    #[no_mangle]
[INFO] [stdout]    21       │-    extern "C" fn Bar_destroy<'b, 'a: 'b>(this: Box<Bar<'b, 'a>>) {}
[INFO] [stdout]    22       │-    #[no_mangle]
[INFO] [stdout]    23       │-    extern "C" fn Foo_new<'a>(x: diplomat_runtime::DiplomatUtf8StrSlice<'a>) -> Box<Foo<'a>> {
[INFO] [stdout]    24       │-        let x = x.into();
[INFO] [stdout]    25       │-        Foo::new(x)
[INFO] [stdout]    26       │-    }
[INFO] [stdout]    27       │-    #[no_mangle]
[INFO] [stdout]    28       │-    extern "C" fn Foo_get_bar<'a: 'b, 'b>(this: &'b Foo<'a>) -> Box<Bar<'b, 'a>> {
[INFO] [stdout]    29       │-        this.get_bar()
[INFO] [stdout]    30       │-    }
[INFO] [stdout]    31       │-    #[no_mangle]
[INFO] [stdout]    32       │-    extern "C" fn Foo_get_baz<'a: 'b, 'b>(this: &'b Foo<'a>) -> Baz<'b, 'a> {
[INFO] [stdout]    33       │-        this.get_baz()
[INFO] [stdout]    34       │-    }
[INFO] [stdout]    35       │-    #[no_mangle]
[INFO] [stdout]    36       │-    extern "C" fn Foo_destroy<'a>(this: Box<Foo<'a>>) {}
[INFO] [stdout]    37       │-}
[INFO] [stdout]           0 │+mod ffi { struct Foo < 'a > (& 'a str) ; struct Bar < 'b , 'a : 'b > (& 'b Foo < 'a >) ; # [repr (C)] struct Baz < 'x , 'y > { foo : & 'y Foo < 'x > , } impl < 'a > Foo < 'a > { pub fn new (x : & 'a str) -> Box < Foo < 'a > > { unimplemented ! () } pub fn get_bar < 'b > (& 'b self) -> Box < Bar < 'b , 'a > > { unimplemented ! () } pub fn get_baz < 'b > (& 'b self) -> Baz < 'b , 'a > { Bax { foo : self } } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Bar_destroy < 'b , 'a : 'b , > (this : Box < Bar < 'b , 'a > >) { } # [no_mangle] extern "C" fn Foo_new < 'a , > (x : diplomat_runtime :: DiplomatUtf8StrSlice < 'a >) -> Box < Foo < 'a > > { let x = x . into () ; Foo :: new (x) } # [no_mangle] extern "C" fn Foo_get_bar < 'a : 'b , 'b , > (this : & 'b Foo < 'a >) -> Box < Bar < 'b , 'a > > { this . get_bar () } # [no_mangle] extern "C" fn Foo_get_baz < 'a : 'b , 'b , > (this : & 'b Foo < 'a >) -> Baz < 'b , 'a > { this . get_baz () } # [no_mangle] extern "C" fn Foo_destroy < 'a , > (this : Box < Foo < 'a > >) { } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::multilevel_borrows' panicked at src/lib.rs:894:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__multilevel_borrows.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8eccdda - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8eccdda - diplomat::tests::multilevel_borrows::hb28247c7f4bdba22
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:894:9
[INFO] [stdout]   21:     0x59f7f8ecb4c7 - diplomat::tests::multilevel_borrows::{{closure}}::h78339eedfd5a8a10
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:893:28
[INFO] [stdout]   22:     0x59f7f8eea4d6 - core::ops::function::FnOnce::call_once::hed44de4082f9f0ee
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::slices stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__slices.snap
[INFO] [stdout] Snapshot: slices
[INFO] [stdout] Source: src/lib.rs:693
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         use
[INFO] [stdout]         diplomat_runtime::{
[INFO] [stdout]             DiplomatStr, DiplomatStr16, DiplomatByte, DiplomatOwnedSlice,
[INFO] [stdout]             DiplomatOwnedStr16Slice, DiplomatOwnedStrSlice,
[INFO] [stdout]             DiplomatOwnedUTF8StrSlice, DiplomatSlice, DiplomatSliceMut,
[INFO] [stdout]             DiplomatStr16Slice, DiplomatStrSlice, DiplomatUtf8StrSlice
[INFO] [stdout]         }; struct Foo<'a>
[INFO] [stdout]         {
[INFO] [stdout]             a: DiplomatSlice<'a, u8>, b: DiplomatSlice<'a, u16>, c:
[INFO] [stdout]             DiplomatUtf8StrSlice<'a>, d: DiplomatStrSlice<'a>, e:
[INFO] [stdout]             DiplomatStr16Slice<'a>, f: DiplomatSlice<'a, DiplomatByte>,
[INFO] [stdout]         } impl Foo
[INFO] [stdout]         {
[INFO] [stdout]             pub fn
[INFO] [stdout]             make(a: &'a [u8], b: &'a [u16], c: &'a str, d: &'a DiplomatStr, e:
[INFO] [stdout]             &'a DiplomatStr16, f: &'a [DiplomatByte]) -> Self
[INFO] [stdout]             { Foo { a, b, c, d, e, f, } } pub fn
[INFO] [stdout]             make_runtime_types(a: DiplomatSlice<'a, u8>, b: DiplomatSlice<'a,
[INFO] [stdout]             u16>, c: DiplomatUtf8StrSlice<'a>, d: DiplomatStrSlice<'a>, e:
[INFO] [stdout]             DiplomatStr16Slice<'a>, f: DiplomatSlice<'a, DiplomatByte>) ->
[INFO] [stdout]             Self
[INFO] [stdout]             {
[INFO] [stdout]                 Foo
[INFO] [stdout]                 {
[INFO] [stdout]                     a: a.into(), b: b.into(), c: c.into(), d: d.into(), e:
[INFO] [stdout]                     e.into(), f: f.into(),
[INFO] [stdout]                 }
[INFO] [stdout]             } pub fn
[INFO] [stdout]             boxes(a: Box<[u8]>, b: Box<[u16]>, c: Box<str>, d:
[INFO] [stdout]             Box<DiplomatStr>, e: Box<DiplomatStr16>, f: Box<[DiplomatByte]>)
[INFO] [stdout]             -> Self { unimplemented!() } pub fn
[INFO] [stdout]             boxes_runtime_types(a: DiplomatOwnedSlice<u8>, b:
[INFO] [stdout]             DiplomatOwnedSlice<u16>, c: DiplomatOwnedUTF8StrSlice, d:
[INFO] [stdout]             DiplomatOwnedStrSlice, e: DiplomatOwnedStr16Slice, f:
[INFO] [stdout]             DiplomatOwnedSlice<DiplomatByte>) -> Self { unimplemented!() } pub
[INFO] [stdout]             fn a(self) -> &[u8] { self.a } pub fn b(self) -> &[u16] { self.b }
[INFO] [stdout]             pub fn c(self) -> &str { self.c } pub fn d(self) -> &DiplomatStr
[INFO] [stdout]             { self.d } pub fn e(self) -> &DiplomatStr16 { self.e } pub fn
[INFO] [stdout]             f(self) -> &[DiplomatByte] { self.f }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    use diplomat_runtime::{
[INFO] [stdout]     2       │-        DiplomatByte, DiplomatOwnedSlice, DiplomatOwnedStr16Slice, DiplomatOwnedStrSlice,
[INFO] [stdout]     3       │-        DiplomatOwnedUTF8StrSlice, DiplomatSlice, DiplomatSliceMut, DiplomatStr, DiplomatStr16,
[INFO] [stdout]     4       │-        DiplomatStr16Slice, DiplomatStrSlice, DiplomatUtf8StrSlice,
[INFO] [stdout]     5       │-    };
[INFO] [stdout]     6       │-    #[repr(C)]
[INFO] [stdout]     7       │-    struct Foo<'a> {
[INFO] [stdout]     8       │-        a: DiplomatSlice<'a, u8>,
[INFO] [stdout]     9       │-        b: DiplomatSlice<'a, u16>,
[INFO] [stdout]    10       │-        c: DiplomatUtf8StrSlice<'a>,
[INFO] [stdout]    11       │-        d: DiplomatStrSlice<'a>,
[INFO] [stdout]    12       │-        e: DiplomatStr16Slice<'a>,
[INFO] [stdout]    13       │-        f: DiplomatSlice<'a, DiplomatByte>,
[INFO] [stdout]    14       │-    }
[INFO] [stdout]    15       │-    impl Foo {
[INFO] [stdout]    16       │-        pub fn make(
[INFO] [stdout]    17       │-            a: &'a [u8],
[INFO] [stdout]    18       │-            b: &'a [u16],
[INFO] [stdout]    19       │-            c: &'a str,
[INFO] [stdout]    20       │-            d: &'a DiplomatStr,
[INFO] [stdout]    21       │-            e: &'a DiplomatStr16,
[INFO] [stdout]    22       │-            f: &'a [DiplomatByte],
[INFO] [stdout]    23       │-        ) -> Self {
[INFO] [stdout]    24       │-            Foo { a, b, c, d, e, f }
[INFO] [stdout]    25       │-        }
[INFO] [stdout]    26       │-        pub fn make_runtime_types(
[INFO] [stdout]    27       │-            a: DiplomatSlice<'a, u8>,
[INFO] [stdout]    28       │-            b: DiplomatSlice<'a, u16>,
[INFO] [stdout]    29       │-            c: DiplomatUtf8StrSlice<'a>,
[INFO] [stdout]    30       │-            d: DiplomatStrSlice<'a>,
[INFO] [stdout]    31       │-            e: DiplomatStr16Slice<'a>,
[INFO] [stdout]    32       │-            f: DiplomatSlice<'a, DiplomatByte>,
[INFO] [stdout]    33       │-        ) -> Self {
[INFO] [stdout]    34       │-            Foo {
[INFO] [stdout]    35       │-                a: a.into(),
[INFO] [stdout]    36       │-                b: b.into(),
[INFO] [stdout]    37       │-                c: c.into(),
[INFO] [stdout]    38       │-                d: d.into(),
[INFO] [stdout]    39       │-                e: e.into(),
[INFO] [stdout]    40       │-                f: f.into(),
[INFO] [stdout]    41       │-            }
[INFO] [stdout]    42       │-        }
[INFO] [stdout]    43       │-        pub fn boxes(
[INFO] [stdout]    44       │-            a: Box<[u8]>,
[INFO] [stdout]    45       │-            b: Box<[u16]>,
[INFO] [stdout]    46       │-            c: Box<str>,
[INFO] [stdout]    47       │-            d: Box<DiplomatStr>,
[INFO] [stdout]    48       │-            e: Box<DiplomatStr16>,
[INFO] [stdout]    49       │-            f: Box<[DiplomatByte]>,
[INFO] [stdout]    50       │-        ) -> Self {
[INFO] [stdout]    51       │-            unimplemented!()
[INFO] [stdout]    52       │-        }
[INFO] [stdout]    53       │-        pub fn boxes_runtime_types(
[INFO] [stdout]    54       │-            a: DiplomatOwnedSlice<u8>,
[INFO] [stdout]    55       │-            b: DiplomatOwnedSlice<u16>,
[INFO] [stdout]    56       │-            c: DiplomatOwnedUTF8StrSlice,
[INFO] [stdout]    57       │-            d: DiplomatOwnedStrSlice,
[INFO] [stdout]    58       │-            e: DiplomatOwnedStr16Slice,
[INFO] [stdout]    59       │-            f: DiplomatOwnedSlice<DiplomatByte>,
[INFO] [stdout]    60       │-        ) -> Self {
[INFO] [stdout]    61       │-            unimplemented!()
[INFO] [stdout]    62       │-        }
[INFO] [stdout]    63       │-        pub fn a(self) -> &[u8] {
[INFO] [stdout]    64       │-            self.a
[INFO] [stdout]    65       │-        }
[INFO] [stdout]    66       │-        pub fn b(self) -> &[u16] {
[INFO] [stdout]    67       │-            self.b
[INFO] [stdout]    68       │-        }
[INFO] [stdout]    69       │-        pub fn c(self) -> &str {
[INFO] [stdout]    70       │-            self.c
[INFO] [stdout]    71       │-        }
[INFO] [stdout]    72       │-        pub fn d(self) -> &DiplomatStr {
[INFO] [stdout]    73       │-            self.d
[INFO] [stdout]    74       │-        }
[INFO] [stdout]    75       │-        pub fn e(self) -> &DiplomatStr16 {
[INFO] [stdout]    76       │-            self.e
[INFO] [stdout]    77       │-        }
[INFO] [stdout]    78       │-        pub fn f(self) -> &[DiplomatByte] {
[INFO] [stdout]    79       │-            self.f
[INFO] [stdout]    80       │-        }
[INFO] [stdout]    81       │-    }
[INFO] [stdout]    82       │-    use core::ffi::c_void;
[INFO] [stdout]    83       │-    use diplomat_runtime::*;
[INFO] [stdout]    84       │-    #[no_mangle]
[INFO] [stdout]    85       │-    extern "C" fn Foo_make(
[INFO] [stdout]    86       │-        a: diplomat_runtime::DiplomatSlice<'a, u8>,
[INFO] [stdout]    87       │-        b: diplomat_runtime::DiplomatSlice<'a, u16>,
[INFO] [stdout]    88       │-        c: diplomat_runtime::DiplomatUtf8StrSlice<'a>,
[INFO] [stdout]    89       │-        d: diplomat_runtime::DiplomatStrSlice<'a>,
[INFO] [stdout]    90       │-        e: diplomat_runtime::DiplomatStr16Slice<'a>,
[INFO] [stdout]    91       │-        f: diplomat_runtime::DiplomatSlice<'a, DiplomatByte>,
[INFO] [stdout]    92       │-    ) -> Foo {
[INFO] [stdout]    93       │-        let a = a.into();
[INFO] [stdout]    94       │-        let b = b.into();
[INFO] [stdout]    95       │-        let c = c.into();
[INFO] [stdout]    96       │-        let d = d.into();
[INFO] [stdout]    97       │-        let e = e.into();
[INFO] [stdout]    98       │-        let f = f.into();
[INFO] [stdout]    99       │-        Foo::make(a, b, c, d, e, f)
[INFO] [stdout]   100       │-    }
[INFO] [stdout]   101       │-    #[no_mangle]
[INFO] [stdout]   102       │-    extern "C" fn Foo_make_runtime_types(
[INFO] [stdout]   103       │-        a: diplomat_runtime::DiplomatOwnedSlice<u8>,
[INFO] [stdout]   104       │-        b: diplomat_runtime::DiplomatOwnedSlice<u16>,
[INFO] [stdout]   105       │-        c: diplomat_runtime::DiplomatUtf8StrSlice<'a>,
[INFO] [stdout]   106       │-        d: diplomat_runtime::DiplomatStrSlice<'a>,
[INFO] [stdout]   107       │-        e: diplomat_runtime::DiplomatStr16Slice<'a>,
[INFO] [stdout]   108       │-        f: diplomat_runtime::DiplomatOwnedSlice<DiplomatByte>,
[INFO] [stdout]   109       │-    ) -> Foo {
[INFO] [stdout]   110       │-        Foo::make_runtime_types(a, b, c, d, e, f)
[INFO] [stdout]   111       │-    }
[INFO] [stdout]   112       │-    #[no_mangle]
[INFO] [stdout]   113       │-    extern "C" fn Foo_boxes(
[INFO] [stdout]   114       │-        a: diplomat_runtime::DiplomatOwnedSlice<u8>,
[INFO] [stdout]   115       │-        b: diplomat_runtime::DiplomatOwnedSlice<u16>,
[INFO] [stdout]   116       │-        c: diplomat_runtime::DiplomatOwnedUTF8StrSlice,
[INFO] [stdout]   117       │-        d: diplomat_runtime::DiplomatOwnedStrSlice,
[INFO] [stdout]   118       │-        e: diplomat_runtime::DiplomatOwnedStr16Slice,
[INFO] [stdout]   119       │-        f: diplomat_runtime::DiplomatOwnedSlice<DiplomatByte>,
[INFO] [stdout]   120       │-    ) -> Foo {
[INFO] [stdout]   121       │-        let a = a.into();
[INFO] [stdout]   122       │-        let b = b.into();
[INFO] [stdout]   123       │-        let c = c.into();
[INFO] [stdout]   124       │-        let d = d.into();
[INFO] [stdout]   125       │-        let e = e.into();
[INFO] [stdout]   126       │-        let f = f.into();
[INFO] [stdout]   127       │-        Foo::boxes(a, b, c, d, e, f)
[INFO] [stdout]   128       │-    }
[INFO] [stdout]   129       │-    #[no_mangle]
[INFO] [stdout]   130       │-    extern "C" fn Foo_boxes_runtime_types(
[INFO] [stdout]   131       │-        a: diplomat_runtime::DiplomatSliceMut<u8>,
[INFO] [stdout]   132       │-        b: diplomat_runtime::DiplomatSliceMut<u16>,
[INFO] [stdout]   133       │-        c: diplomat_runtime::DiplomatOwnedUTF8StrSlice,
[INFO] [stdout]   134       │-        d: diplomat_runtime::DiplomatOwnedStrSlice,
[INFO] [stdout]   135       │-        e: diplomat_runtime::DiplomatOwnedStr16Slice,
[INFO] [stdout]   136       │-        f: diplomat_runtime::DiplomatSliceMut<DiplomatByte>,
[INFO] [stdout]   137       │-    ) -> Foo {
[INFO] [stdout]   138       │-        Foo::boxes_runtime_types(a, b, c, d, e, f)
[INFO] [stdout]   139       │-    }
[INFO] [stdout]   140       │-    #[no_mangle]
[INFO] [stdout]   141       │-    extern "C" fn Foo_a(this: Foo) -> diplomat_runtime::DiplomatSlice<u8> {
[INFO] [stdout]   142       │-        this.a().into()
[INFO] [stdout]   143       │-    }
[INFO] [stdout]   144       │-    #[no_mangle]
[INFO] [stdout]   145       │-    extern "C" fn Foo_b(this: Foo) -> diplomat_runtime::DiplomatSlice<u16> {
[INFO] [stdout]   146       │-        this.b().into()
[INFO] [stdout]   147       │-    }
[INFO] [stdout]   148       │-    #[no_mangle]
[INFO] [stdout]   149       │-    extern "C" fn Foo_c(this: Foo) -> diplomat_runtime::DiplomatUtf8StrSlice {
[INFO] [stdout]   150       │-        this.c().into()
[INFO] [stdout]   151       │-    }
[INFO] [stdout]   152       │-    #[no_mangle]
[INFO] [stdout]   153       │-    extern "C" fn Foo_d(this: Foo) -> diplomat_runtime::DiplomatStrSlice {
[INFO] [stdout]   154       │-        this.d().into()
[INFO] [stdout]   155       │-    }
[INFO] [stdout]   156       │-    #[no_mangle]
[INFO] [stdout]   157       │-    extern "C" fn Foo_e(this: Foo) -> diplomat_runtime::DiplomatStr16Slice {
[INFO] [stdout]   158       │-        this.e().into()
[INFO] [stdout]   159       │-    }
[INFO] [stdout]   160       │-    #[no_mangle]
[INFO] [stdout]   161       │-    extern "C" fn Foo_f(this: Foo) -> diplomat_runtime::DiplomatSlice<DiplomatByte> {
[INFO] [stdout]   162       │-        this.f().into()
[INFO] [stdout]   163       │-    }
[INFO] [stdout]   164       │-}
[INFO] [stdout]           0 │+mod ffi { use diplomat_runtime :: { DiplomatStr , DiplomatStr16 , DiplomatByte , DiplomatOwnedSlice , DiplomatOwnedStr16Slice , DiplomatOwnedStrSlice , DiplomatOwnedUTF8StrSlice , DiplomatSlice , DiplomatSliceMut , DiplomatStr16Slice , DiplomatStrSlice , DiplomatUtf8StrSlice } ; # [repr (C)] struct Foo < 'a > { a : DiplomatSlice < 'a , u8 > , b : DiplomatSlice < 'a , u16 > , c : DiplomatUtf8StrSlice < 'a > , d : DiplomatStrSlice < 'a > , e : DiplomatStr16Slice < 'a > , f : DiplomatSlice < 'a , DiplomatByte > , } impl Foo { pub fn make (a : & 'a [u8] , b : & 'a [u16] , c : & 'a str , d : & 'a DiplomatStr , e : & 'a DiplomatStr16 , f : & 'a [DiplomatByte]) -> Self { Foo { a , b , c , d , e , f , } } pub fn make_runtime_types (a : DiplomatSlice < 'a , u8 > , b : DiplomatSlice < 'a , u16 > , c : DiplomatUtf8StrSlice < 'a > , d : DiplomatStrSlice < 'a > , e : DiplomatStr16Slice < 'a > , f : DiplomatSlice < 'a , DiplomatByte >) -> Self { Foo { a : a . into () , b : b . into () , c : c . into () , d : d . into () , e : e . into () , f : f . into () , } } pub fn boxes (a : Box < [u8] > , b : Box < [u16] > , c : Box < str > , d : Box < DiplomatStr > , e : Box < DiplomatStr16 > , f : Box < [DiplomatByte] >) -> Self { unimplemented ! () } pub fn boxes_runtime_types (a : DiplomatOwnedSlice < u8 > , b : DiplomatOwnedSlice < u16 > , c : DiplomatOwnedUTF8StrSlice , d : DiplomatOwnedStrSlice , e : DiplomatOwnedStr16Slice , f : DiplomatOwnedSlice < DiplomatByte >) -> Self { unimplemented ! () } pub fn a (self) -> & [u8] { self . a } pub fn b (self) -> & [u16] { self . b } pub fn c (self) -> & str { self . c } pub fn d (self) -> & DiplomatStr { self . d } pub fn e (self) -> & DiplomatStr16 { self . e } pub fn f (self) -> & [DiplomatByte] { self . f } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_make (a : diplomat_runtime :: DiplomatSlice < 'a , u8 > , b : diplomat_runtime :: DiplomatSlice < 'a , u16 > , c : diplomat_runtime :: DiplomatUtf8StrSlice < 'a > , d : diplomat_runtime :: DiplomatStrSlice < 'a > , e : diplomat_runtime :: DiplomatStr16Slice < 'a > , f : diplomat_runtime :: DiplomatSlice < 'a , DiplomatByte >) -> Foo { let a = a . into () ; let b = b . into () ; let c = c . into () ; let d = d . into () ; let e = e . into () ; let f = f . into () ; Foo :: make (a , b , c , d , e , f) } # [no_mangle] extern "C" fn Foo_make_runtime_types (a : diplomat_runtime :: DiplomatOwnedSlice < u8 > , b : diplomat_runtime :: DiplomatOwnedSlice < u16 > , c : diplomat_runtime :: DiplomatUtf8StrSlice < 'a > , d : diplomat_runtime :: DiplomatStrSlice < 'a > , e : diplomat_runtime :: DiplomatStr16Slice < 'a > , f : diplomat_runtime :: DiplomatOwnedSlice < DiplomatByte >) -> Foo { Foo :: make_runtime_types (a , b , c , d , e , f) } # [no_mangle] extern "C" fn Foo_boxes (a : diplomat_runtime :: DiplomatOwnedSlice < u8 > , b : diplomat_runtime :: DiplomatOwnedSlice < u16 > , c : diplomat_runtime :: DiplomatOwnedUTF8StrSlice , d : diplomat_runtime :: DiplomatOwnedStrSlice , e : diplomat_runtime :: DiplomatOwnedStr16Slice , f : diplomat_runtime :: DiplomatOwnedSlice < DiplomatByte >) -> Foo { let a = a . into () ; let b = b . into () ; let c = c . into () ; let d = d . into () ; let e = e . into () ; let f = f . into () ; Foo :: boxes (a , b , c , d , e , f) } # [no_mangle] extern "C" fn Foo_boxes_runtime_types (a : diplomat_runtime :: DiplomatSliceMut < u8 > , b : diplomat_runtime :: DiplomatSliceMut < u16 > , c : diplomat_runtime :: DiplomatOwnedUTF8StrSlice , d : diplomat_runtime :: DiplomatOwnedStrSlice , e : diplomat_runtime :: DiplomatOwnedStr16Slice , f : diplomat_runtime :: DiplomatSliceMut < DiplomatByte >) -> Foo { Foo :: boxes_runtime_types (a , b , c , d , e , f) } # [no_mangle] extern "C" fn Foo_a (this : Foo) -> diplomat_runtime :: DiplomatSlice < u8 > { this . a () . into () } # [no_mangle] extern "C" fn Foo_b (this : Foo) -> diplomat_runtime :: DiplomatSlice < u16 > { this . b () . into () } # [no_mangle] extern "C" fn Foo_c (this : Foo) -> diplomat_runtime :: DiplomatUtf8StrSlice { this . c () . into () } # [no_mangle] extern "C" fn Foo_d (this : Foo) -> diplomat_runtime :: DiplomatStrSlice { this . d () . into () } # [no_mangle] extern "C" fn Foo_e (this : Foo) -> diplomat_runtime :: DiplomatStr16Slice { this . e () . into () } # [no_mangle] extern "C" fn Foo_f (this : Foo) -> diplomat_runtime :: DiplomatSlice < DiplomatByte > { this . f () . into () } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::slices' panicked at src/lib.rs:693:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__slices.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ec5833 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ec5833 - diplomat::tests::slices::h6e31e99dddbb977a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:693:9
[INFO] [stdout]   21:     0x59f7f8ec18e7 - diplomat::tests::slices::{{closure}}::hda5c1200ab1821c4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:692:16
[INFO] [stdout]   22:     0x59f7f8eea196 - core::ops::function::FnOnce::call_once::h3943919b049131fd
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::mod_with_rust_result stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__mod_with_rust_result.snap
[INFO] [stdout] Snapshot: mod_with_rust_result
[INFO] [stdout] Source: src/lib.rs:875
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         { pub fn bar(&self) -> Result<(), ()> { unimplemented!() } }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn bar(&self) -> Result<(), ()> {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_bar(this: &Foo) -> diplomat_runtime::DiplomatResult<(), ()> {
[INFO] [stdout]    12       │-        this.bar().into()
[INFO] [stdout]    13       │-    }
[INFO] [stdout]    14       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn bar (& self) -> Result < () , () > { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_bar (this : & Foo) -> diplomat_runtime :: DiplomatResult < () , () > { this . bar () . into () } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::mod_with_rust_result' panicked at src/lib.rs:875:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__mod_with_rust_result.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ecb262 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ecb262 - diplomat::tests::mod_with_rust_result::h13c6a9cc0952dff6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:875:9
[INFO] [stdout]   21:     0x59f7f8eca7e7 - diplomat::tests::mod_with_rust_result::{{closure}}::ha008c8dfa7bcbb63
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:874:30
[INFO] [stdout]   22:     0x59f7f8eea616 - core::ops::function::FnOnce::call_once::hf9703a8350a78c95
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::mod_with_write_result stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__mod_with_write_result.snap
[INFO] [stdout] Snapshot: mod_with_write_result
[INFO] [stdout] Source: src/lib.rs:856
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         struct Foo {} impl Foo
[INFO] [stdout]         {
[INFO] [stdout]             pub fn to_string(&self, to: &mut DiplomatWrite) -> Result<(), ()>
[INFO] [stdout]             { unimplemented!() }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    struct Foo {}
[INFO] [stdout]     3       │-    impl Foo {
[INFO] [stdout]     4       │-        pub fn to_string(&self, to: &mut DiplomatWrite) -> Result<(), ()> {
[INFO] [stdout]     5       │-            unimplemented!()
[INFO] [stdout]     6       │-        }
[INFO] [stdout]     7       │-    }
[INFO] [stdout]     8       │-    use core::ffi::c_void;
[INFO] [stdout]     9       │-    use diplomat_runtime::*;
[INFO] [stdout]    10       │-    #[no_mangle]
[INFO] [stdout]    11       │-    extern "C" fn Foo_to_string(
[INFO] [stdout]    12       │-        this: &Foo,
[INFO] [stdout]    13       │-        to: &mut diplomat_runtime::DiplomatWrite,
[INFO] [stdout]    14       │-    ) -> diplomat_runtime::DiplomatResult<(), ()> {
[INFO] [stdout]    15       │-        let ret = this.to_string(to);
[INFO] [stdout]    16       │-        to.flush();
[INFO] [stdout]    17       │-        ret.into()
[INFO] [stdout]    18       │-    }
[INFO] [stdout]    19       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] struct Foo { } impl Foo { pub fn to_string (& self , to : & mut DiplomatWrite) -> Result < () , () > { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Foo_to_string (this : & Foo , to : & mut diplomat_runtime :: DiplomatWrite) -> diplomat_runtime :: DiplomatResult < () , () > { let ret = this . to_string (to) ; to . flush () ; ret . into () } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::mod_with_write_result' panicked at src/lib.rs:856:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__mod_with_write_result.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8eca578 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8eca578 - diplomat::tests::mod_with_write_result::h8d27211612ff8fad
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:856:9
[INFO] [stdout]   21:     0x59f7f8ec9a67 - diplomat::tests::mod_with_write_result::{{closure}}::h0f51233812320705
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:855:31
[INFO] [stdout]   22:     0x59f7f8eea516 - core::ops::function::FnOnce::call_once::hf287912bdb06d4e6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::self_params stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__self_params.snap
[INFO] [stdout] Snapshot: self_params
[INFO] [stdout] Source: src/lib.rs:929
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         #[diplomat::opaque] struct RefList<'a>
[INFO] [stdout]         { data: &'a i32, next: Option<Box<Self>>, } impl<'b> RefList<'b>
[INFO] [stdout]         {
[INFO] [stdout]             pub fn extend(&mut self, other: &Self) -> Self
[INFO] [stdout]             { unimplemented!() }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    struct RefList<'a> {
[INFO] [stdout]     2       │-        data: &'a i32,
[INFO] [stdout]     3       │-        next: Option<Box<Self>>,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl<'b> RefList<'b> {
[INFO] [stdout]     6       │-        pub fn extend(&mut self, other: &Self) -> Self {
[INFO] [stdout]     7       │-            unimplemented!()
[INFO] [stdout]     8       │-        }
[INFO] [stdout]     9       │-    }
[INFO] [stdout]    10       │-    use core::ffi::c_void;
[INFO] [stdout]    11       │-    use diplomat_runtime::*;
[INFO] [stdout]    12       │-    #[no_mangle]
[INFO] [stdout]    13       │-    extern "C" fn RefList_extend<'b>(this: &mut RefList<'b>, other: &RefList<'b>) -> RefList<'b> {
[INFO] [stdout]    14       │-        this.extend(other)
[INFO] [stdout]    15       │-    }
[INFO] [stdout]    16       │-    #[no_mangle]
[INFO] [stdout]    17       │-    extern "C" fn RefList_destroy<'a>(this: Box<RefList<'a>>) {}
[INFO] [stdout]    18       │-}
[INFO] [stdout]           0 │+mod ffi { struct RefList < 'a > { data : & 'a i32 , next : Option < Box < Self > > , } impl < 'b > RefList < 'b > { pub fn extend (& mut self , other : & Self) -> Self { unimplemented ! () } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn RefList_extend < 'b , > (this : & mut RefList < 'b > , other : & RefList < 'b >) -> RefList < 'b > { this . extend (other) } # [no_mangle] extern "C" fn RefList_destroy < 'a , > (this : Box < RefList < 'a > >) { } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::self_params' panicked at src/lib.rs:929:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__self_params.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ecde1a - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ecde1a - diplomat::tests::self_params::h9e13eb39706f209c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:929:9
[INFO] [stdout]   21:     0x59f7f8ecd047 - diplomat::tests::self_params::{{closure}}::hd3de430b54926c4e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:928:21
[INFO] [stdout]   22:     0x59f7f8eea306 - core::ops::function::FnOnce::call_once::hb312ef3dca67f720
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::traits stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/diplomat__tests__traits.snap
[INFO] [stdout] Snapshot: traits
[INFO] [stdout] Source: src/lib.rs:1056
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&gen_bridge(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     mod ffi
[INFO] [stdout]     {
[INFO] [stdout]         pub struct TestingStruct { x: i32, y: i32, } pub trait TesterTrait
[INFO] [stdout]         {
[INFO] [stdout]             fn test_trait_fn(&self, x: i32) -> i32; fn
[INFO] [stdout]             test_void_trait_fn(&self); fn
[INFO] [stdout]             test_struct_trait_fn(&self, s: TestingStruct) -> i32; fn
[INFO] [stdout]             test_slice_trait_fn(&self, s: &[u8]) -> i32;
[INFO] [stdout]         } pub struct Wrapper { cant_be_empty: bool, } impl Wrapper
[INFO] [stdout]         {
[INFO] [stdout]             pub fn test_with_trait(t: impl TesterTrait, x: i32) -> i32
[INFO] [stdout]             { t.test_void_trait_fn(); t.test_trait_fn(x) } pub fn
[INFO] [stdout]             test_trait_with_struct(t: impl TesterTrait) -> i32
[INFO] [stdout]             {
[INFO] [stdout]                 let arg = TestingStruct { x: 1, y: 5, };
[INFO] [stdout]                 t.test_struct_trait_fn(arg)
[INFO] [stdout]             }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] }).to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod ffi {
[INFO] [stdout]     1       │-    #[repr(C)]
[INFO] [stdout]     2       │-    pub struct TestingStruct {
[INFO] [stdout]     3       │-        x: i32,
[INFO] [stdout]     4       │-        y: i32,
[INFO] [stdout]     5       │-    }
[INFO] [stdout]     6       │-    pub trait TesterTrait {
[INFO] [stdout]     7       │-        fn test_trait_fn(&self, x: i32) -> i32;
[INFO] [stdout]     8       │-        fn test_void_trait_fn(&self);
[INFO] [stdout]     9       │-        fn test_struct_trait_fn(&self, s: TestingStruct) -> i32;
[INFO] [stdout]    10       │-        fn test_slice_trait_fn(&self, s: &[u8]) -> i32;
[INFO] [stdout]    11       │-    }
[INFO] [stdout]    12       │-    #[repr(C)]
[INFO] [stdout]    13       │-    pub struct Wrapper {
[INFO] [stdout]    14       │-        cant_be_empty: bool,
[INFO] [stdout]    15       │-    }
[INFO] [stdout]    16       │-    impl Wrapper {
[INFO] [stdout]    17       │-        pub fn test_with_trait(t: impl TesterTrait, x: i32) -> i32 {
[INFO] [stdout]    18       │-            t.test_void_trait_fn();
[INFO] [stdout]    19       │-            t.test_trait_fn(x)
[INFO] [stdout]    20       │-        }
[INFO] [stdout]    21       │-        pub fn test_trait_with_struct(t: impl TesterTrait) -> i32 {
[INFO] [stdout]    22       │-            let arg = TestingStruct { x: 1, y: 5 };
[INFO] [stdout]    23       │-            t.test_struct_trait_fn(arg)
[INFO] [stdout]    24       │-        }
[INFO] [stdout]    25       │-    }
[INFO] [stdout]    26       │-    use core::ffi::c_void;
[INFO] [stdout]    27       │-    use diplomat_runtime::*;
[INFO] [stdout]    28       │-    #[no_mangle]
[INFO] [stdout]    29       │-    extern "C" fn Wrapper_test_with_trait(t: DiplomatTraitStruct_TesterTrait, x: i32) -> i32 {
[INFO] [stdout]    30       │-        Wrapper::test_with_trait(t, x)
[INFO] [stdout]    31       │-    }
[INFO] [stdout]    32       │-    #[no_mangle]
[INFO] [stdout]    33       │-    extern "C" fn Wrapper_test_trait_with_struct(t: DiplomatTraitStruct_TesterTrait) -> i32 {
[INFO] [stdout]    34       │-        Wrapper::test_trait_with_struct(t)
[INFO] [stdout]    35       │-    }
[INFO] [stdout]    36       │-    #[repr(C)]
[INFO] [stdout]    37       │-    pub struct TesterTrait_VTable {
[INFO] [stdout]    38       │-        pub destructor: Option<unsafe extern "C" fn(*const c_void)>,
[INFO] [stdout]    39       │-        pub size: usize,
[INFO] [stdout]    40       │-        pub alignment: usize,
[INFO] [stdout]    41       │-        pub run_test_trait_fn_callback: unsafe extern "C" fn(*const c_void, i32) -> i32,
[INFO] [stdout]    42       │-        pub run_test_void_trait_fn_callback: unsafe extern "C" fn(*const c_void),
[INFO] [stdout]    43       │-        pub run_test_struct_trait_fn_callback:
[INFO] [stdout]    44       │-            unsafe extern "C" fn(*const c_void, TestingStruct) -> i32,
[INFO] [stdout]    45       │-        pub run_test_slice_trait_fn_callback:
[INFO] [stdout]    46       │-            unsafe extern "C" fn(*const c_void, diplomat_runtime::DiplomatSlice<u8>) -> i32,
[INFO] [stdout]    47       │-    }
[INFO] [stdout]    48       │-    #[repr(C)]
[INFO] [stdout]    49       │-    pub struct DiplomatTraitStruct_TesterTrait {
[INFO] [stdout]    50       │-        data: *const c_void,
[INFO] [stdout]    51       │-        pub vtable: TesterTrait_VTable,
[INFO] [stdout]    52       │-    }
[INFO] [stdout]    53       │-    impl TesterTrait for DiplomatTraitStruct_TesterTrait {
[INFO] [stdout]    54       │-        fn test_trait_fn(&self, x: i32) -> i32 {
[INFO] [stdout]    55       │-            unsafe { ((self.vtable).run_test_trait_fn_callback)(self.data, x) }
[INFO] [stdout]    56       │-        }
[INFO] [stdout]    57       │-        fn test_void_trait_fn(&self) {
[INFO] [stdout]    58       │-            unsafe {
[INFO] [stdout]    59       │-                ((self.vtable).run_test_void_trait_fn_callback)(self.data);
[INFO] [stdout]    60       │-            }
[INFO] [stdout]    61       │-        }
[INFO] [stdout]    62       │-        fn test_struct_trait_fn(&self, s: TestingStruct) -> i32 {
[INFO] [stdout]    63       │-            unsafe { ((self.vtable).run_test_struct_trait_fn_callback)(self.data, s) }
[INFO] [stdout]    64       │-        }
[INFO] [stdout]    65       │-        fn test_slice_trait_fn(&self, s: &[u8]) -> i32 {
[INFO] [stdout]    66       │-            unsafe {
[INFO] [stdout]    67       │-                let s: diplomat_runtime::DiplomatSlice<u8> = s.into();
[INFO] [stdout]    68       │-                ((self.vtable).run_test_slice_trait_fn_callback)(self.data, s)
[INFO] [stdout]    69       │-            }
[INFO] [stdout]    70       │-        }
[INFO] [stdout]    71       │-    }
[INFO] [stdout]    72       │-    impl Drop for DiplomatTraitStruct_TesterTrait {
[INFO] [stdout]    73       │-        fn drop(&mut self) {
[INFO] [stdout]    74       │-            if let Some(destructor) = self.vtable.destructor {
[INFO] [stdout]    75       │-                unsafe {
[INFO] [stdout]    76       │-                    (destructor)(self.data);
[INFO] [stdout]    77       │-                }
[INFO] [stdout]    78       │-            }
[INFO] [stdout]    79       │-        }
[INFO] [stdout]    80       │-    }
[INFO] [stdout]    81       │-}
[INFO] [stdout]           0 │+mod ffi { # [repr (C)] pub struct TestingStruct { x : i32 , y : i32 , } pub trait TesterTrait { fn test_trait_fn (& self , x : i32) -> i32 ; fn test_void_trait_fn (& self) ; fn test_struct_trait_fn (& self , s : TestingStruct) -> i32 ; fn test_slice_trait_fn (& self , s : & [u8]) -> i32 ; } # [repr (C)] pub struct Wrapper { cant_be_empty : bool , } impl Wrapper { pub fn test_with_trait (t : impl TesterTrait , x : i32) -> i32 { t . test_void_trait_fn () ; t . test_trait_fn (x) } pub fn test_trait_with_struct (t : impl TesterTrait) -> i32 { let arg = TestingStruct { x : 1 , y : 5 , } ; t . test_struct_trait_fn (arg) } } use diplomat_runtime :: * ; use core :: ffi :: c_void ; # [no_mangle] extern "C" fn Wrapper_test_with_trait (t : DiplomatTraitStruct_TesterTrait , x : i32) -> i32 { Wrapper :: test_with_trait (t , x) } # [no_mangle] extern "C" fn Wrapper_test_trait_with_struct (t : DiplomatTraitStruct_TesterTrait) -> i32 { Wrapper :: test_trait_with_struct (t) } # [repr (C)] pub struct TesterTrait_VTable { pub destructor : Option < unsafe extern "C" fn (* const c_void) > , pub size : usize , pub alignment : usize , pub run_test_trait_fn_callback : unsafe extern "C" fn (* const c_void , i32) -> i32 , pub run_test_void_trait_fn_callback : unsafe extern "C" fn (* const c_void) , pub run_test_struct_trait_fn_callback : unsafe extern "C" fn (* const c_void , TestingStruct) -> i32 , pub run_test_slice_trait_fn_callback : unsafe extern "C" fn (* const c_void , diplomat_runtime :: DiplomatSlice < u8 >) -> i32 , } # [repr (C)] pub struct DiplomatTraitStruct_TesterTrait { data : * const c_void , pub vtable : TesterTrait_VTable , } impl TesterTrait for DiplomatTraitStruct_TesterTrait { fn test_trait_fn (& self , x : i32) -> i32 { unsafe { ((self . vtable) . run_test_trait_fn_callback) (self . data , x) } } fn test_void_trait_fn (& self) { unsafe { ((self . vtable) . run_test_void_trait_fn_callback) (self . data) ; } } fn test_struct_trait_fn (& self , s : TestingStruct) -> i32 { unsafe { ((self . vtable) . run_test_struct_trait_fn_callback) (self . data , s) } } fn test_slice_trait_fn (& self , s : & [u8]) -> i32 { unsafe { let s : diplomat_runtime :: DiplomatSlice < u8 > = s . into () ; ((self . vtable) . run_test_slice_trait_fn_callback) (self . data , s) } } } impl Drop for DiplomatTraitStruct_TesterTrait { fn drop (& mut self) { if let Some (destructor) = self . vtable . destructor { unsafe { (destructor) (self . data) ; } } } } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::traits' panicked at src/lib.rs:1056:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/diplomat__tests__traits.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7002b14cca3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7002b14cca3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7002b14cca3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7002b14cca3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7002b151cc63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7002b151cc63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7002b14c03c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7002b14cc882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7002b14cee8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7002b14cec94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x59f7f901dd19 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x59f7f901dd19 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7002b14cf5f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7002b14cf5f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7002b14cf3ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7002b14ccf19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7002b14cf04c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7002b1519070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x7002b15195f6 - core::result::unwrap_failed::hd20b4aa073bda1e2
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
[INFO] [stdout]   19:     0x59f7f8ed5105 - core::result::Result<T,E>::unwrap::h2c933b79014470a6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x59f7f8ed5105 - diplomat::tests::traits::h4bd8d76b958590b1
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1056:9
[INFO] [stdout]   21:     0x59f7f8ed3697 - diplomat::tests::traits::{{closure}}::h623528d08af85af4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1055:16
[INFO] [stdout]   22:     0x59f7f8eea466 - core::ops::function::FnOnce::call_once::hdf0c2ad7c4d883be
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x59f7f90226db - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x59f7f90226db - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x59f7f9021f17 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x59f7f9021f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x59f7f9021f17 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x59f7f9021f17 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x59f7f9021f17 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x59f7f9021f17 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x59f7f9021f17 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x59f7f8fe71f4 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x59f7f8fe71f4 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   35:     0x59f7f8fea8be - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x59f7f8fea8be - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x59f7f8fea8be - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x59f7f8fea8be - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x59f7f8fea8be - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   40:     0x59f7f8fea8be - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7002b14d90ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7002b14d90ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7002b114eac3 - <unknown>
[INFO] [stdout]   45:     0x7002b11dfa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::both_kinds_of_option
[INFO] [stdout]     tests::callback_arguments
[INFO] [stdout]     tests::cfgd_struct
[INFO] [stdout]     tests::cfged_method
[INFO] [stdout]     tests::method_taking_mutable_slice
[INFO] [stdout]     tests::method_taking_owned_slice
[INFO] [stdout]     tests::method_taking_owned_str
[INFO] [stdout]     tests::method_taking_slice
[INFO] [stdout]     tests::method_taking_str
[INFO] [stdout]     tests::mod_with_enum
[INFO] [stdout]     tests::mod_with_rust_result
[INFO] [stdout]     tests::mod_with_write_result
[INFO] [stdout]     tests::multilevel_borrows
[INFO] [stdout]     tests::self_params
[INFO] [stdout]     tests::slices
[INFO] [stdout]     tests::traits
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 16 failed; 0 ignored; 0 measured; 0 filtered out; finished in 31.52s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "214871a6bc65b459d538970c73b4109904621cf21481af36f654767a355b19d8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "214871a6bc65b459d538970c73b4109904621cf21481af36f654767a355b19d8", kill_on_drop: false }`
[INFO] [stdout] 214871a6bc65b459d538970c73b4109904621cf21481af36f654767a355b19d8
