[INFO] fetching crate diplomat 0.9.0...
[INFO] testing diplomat-0.9.0 against beta-2024-12-08 for beta-1.84.0-4-retry
[INFO] extracting crate diplomat 0.9.0 into /workspace/builds/worker-6-tc2/source
[INFO] validating manifest of crates.io crate diplomat 0.9.0 on toolchain beta-2024-12-08
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-12-08" "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-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-12-08" "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" "+beta-2024-12-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+beta-2024-12-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 79de851c0d4e51e166fd243befd0cc3606caff41bd986b149250bbe952b54534
[INFO] running `Command { std: "docker" "start" "-a" "79de851c0d4e51e166fd243befd0cc3606caff41bd986b149250bbe952b54534", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "79de851c0d4e51e166fd243befd0cc3606caff41bd986b149250bbe952b54534", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "79de851c0d4e51e166fd243befd0cc3606caff41bd986b149250bbe952b54534", kill_on_drop: false }`
[INFO] [stdout] 79de851c0d4e51e166fd243befd0cc3606caff41bd986b149250bbe952b54534
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+beta-2024-12-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ab91acea348b387612b739db2f5490893953d6e584dcbb44e9829387186f1ce2
[INFO] running `Command { std: "docker" "start" "-a" "ab91acea348b387612b739db2f5490893953d6e584dcbb44e9829387186f1ce2", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[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 19.62s
[INFO] running `Command { std: "docker" "inspect" "ab91acea348b387612b739db2f5490893953d6e584dcbb44e9829387186f1ce2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ab91acea348b387612b739db2f5490893953d6e584dcbb44e9829387186f1ce2", kill_on_drop: false }`
[INFO] [stdout] ab91acea348b387612b739db2f5490893953d6e584dcbb44e9829387186f1ce2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+beta-2024-12-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aab58b480f0959be309f5c8fdf74985d81c43f01439db755c286833aff1ac5db
[INFO] running `Command { std: "docker" "start" "-a" "aab58b480f0959be309f5c8fdf74985d81c43f01439db755c286833aff1ac5db", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.168
[INFO] [stderr]    Compiling rustix v0.38.42
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling linux-raw-sys v0.4.14
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling similar v2.6.0
[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 11.74s
[INFO] running `Command { std: "docker" "inspect" "aab58b480f0959be309f5c8fdf74985d81c43f01439db755c286833aff1ac5db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aab58b480f0959be309f5c8fdf74985d81c43f01439db755c286833aff1ac5db", kill_on_drop: false }`
[INFO] [stdout] aab58b480f0959be309f5c8fdf74985d81c43f01439db755c286833aff1ac5db
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+beta-2024-12-08" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] fd0acd0901782a2b410dd774ebccf3aa632d933b3b4c6c03370f45c9a7141cbc
[INFO] running `Command { std: "docker" "start" "-a" "fd0acd0901782a2b410dd774ebccf3aa632d933b3b4c6c03370f45c9a7141cbc", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/diplomat-1501c972feaaf335)
[INFO] [stdout] 
[INFO] [stdout] running 16 tests
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stdout] test tests::both_kinds_of_option ... FAILED
[INFO] [stdout] test tests::callback_arguments ... FAILED
[INFO] [stdout] test tests::method_taking_slice ... FAILED
[INFO] [stdout] test tests::cfgd_struct ... FAILED
[INFO] [stdout] test tests::method_taking_owned_slice ... FAILED
[INFO] [stdout] test tests::method_taking_mutable_slice ... FAILED
[INFO] [stdout] test tests::cfged_method ... FAILED
[INFO] [stdout] test tests::method_taking_owned_str ... FAILED
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'beta-2024-12-08-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain beta-2024-12-08-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stdout] test tests::method_taking_str ... FAILED
[INFO] [stdout] test tests::multilevel_borrows ... FAILED
[INFO] [stdout] test tests::mod_with_rust_result ... FAILED
[INFO] [stdout] test tests::mod_with_enum ... FAILED
[INFO] [stdout] test tests::self_params ... FAILED
[INFO] [stdout] test tests::traits ... FAILED
[INFO] [stdout] test tests::mod_with_write_result ... FAILED
[INFO] [stdout] test tests::slices ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[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] [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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bd07276 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bd07276 - diplomat::tests::both_kinds_of_option::h428a1ebee02eaab3
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1099:9
[INFO] [stdout]   21:     0x64470bd05377 - diplomat::tests::both_kinds_of_option::{{closure}}::h163c2a4d8782ab49
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1098:30
[INFO] [stdout]   22:     0x64470bd09fe6 - core::ops::function::FnOnce::call_once::h88e3c67e88883056
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bd03429 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bd03429 - diplomat::tests::callback_arguments::hba335bc5e631a679
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1011:9
[INFO] [stdout]   21:     0x64470bd00d97 - diplomat::tests::callback_arguments::{{closure}}::h4b71420df0147125
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1010:28
[INFO] [stdout]   22:     0x64470bd0a166 - core::ops::function::FnOnce::call_once::hd398766f79750727
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf64e7 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf64e7 - diplomat::tests::method_taking_slice::hca9fb44466a0232a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:758:9
[INFO] [stdout]   21:     0x64470bcf5a97 - diplomat::tests::method_taking_slice::{{closure}}::hf7da6279b12f3eb2
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:757:29
[INFO] [stdout]   22:     0x64470bd0a126 - core::ops::function::FnOnce::call_once::hca450d5a13a05b2d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bd00b2d - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bd00b2d - diplomat::tests::cfgd_struct::h5e385d74ca1319ab
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:990:9
[INFO] [stdout]   21:     0x64470bcffd67 - diplomat::tests::cfgd_struct::{{closure}}::h89689e8278dad3fc
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:989:21
[INFO] [stdout]   22:     0x64470bd09dc6 - core::ops::function::FnOnce::call_once::h4a5029396234f2eb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf7eb9 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf7eb9 - diplomat::tests::method_taking_owned_slice::ha801ce9e1c668430
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:796:9
[INFO] [stdout]   21:     0x64470bcf7437 - diplomat::tests::method_taking_owned_slice::{{closure}}::hb54cf27d6b3441fa
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:795:35
[INFO] [stdout]   22:     0x64470bd09fa6 - core::ops::function::FnOnce::call_once::h862e2ff09e88ce62
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf71c6 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf71c6 - diplomat::tests::method_taking_mutable_slice::h5ec2e586f08965ea
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:777:9
[INFO] [stdout]   21:     0x64470bcf6757 - diplomat::tests::method_taking_mutable_slice::{{closure}}::h08c3bae4cd14f6b9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:776:37
[INFO] [stdout]   22:     0x64470bd09d06 - core::ops::function::FnOnce::call_once::h18f6f79a2e458d15
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcfec03 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcfec03 - diplomat::tests::cfged_method::h9d307fc04551fa48
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:952:9
[INFO] [stdout]   21:     0x64470bcfe087 - diplomat::tests::cfged_method::{{closure}}::h10c1fb4c1f17c75e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:951:22
[INFO] [stdout]   22:     0x64470bd0a1e6 - core::ops::function::FnOnce::call_once::hd7b81743e7701975
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf8b1f - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf8b1f - diplomat::tests::method_taking_owned_str::h41caff289368095b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:815:9
[INFO] [stdout]   21:     0x64470bcf8127 - diplomat::tests::method_taking_owned_str::{{closure}}::h6417f013bd0d16ae
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:814:33
[INFO] [stdout]   22:     0x64470bd0a226 - core::ops::function::FnOnce::call_once::hd95a9b4c61568a23
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf167d - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf167d - diplomat::tests::method_taking_str::ha55b2c3ad7d210cf
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:674:9
[INFO] [stdout]   21:     0x64470bcf0cb7 - diplomat::tests::method_taking_str::{{closure}}::he9df8d64125ed845
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:673:27
[INFO] [stdout]   22:     0x64470bd0a1a6 - core::ops::function::FnOnce::call_once::hd42e71b75238ac6e
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcfcdda - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcfcdda - diplomat::tests::multilevel_borrows::h718473b0484784f1
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:894:9
[INFO] [stdout]   21:     0x64470bcfb4c7 - diplomat::tests::multilevel_borrows::{{closure}}::h931e9da101978c01
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:893:28
[INFO] [stdout]   22:     0x64470bd09f36 - core::ops::function::FnOnce::call_once::h62f2daf28a1250b1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcfb262 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcfb262 - diplomat::tests::mod_with_rust_result::h3fb2da889a05ecfe
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:875:9
[INFO] [stdout]   21:     0x64470bcfa7e7 - diplomat::tests::mod_with_rust_result::{{closure}}::h86f7b16b3492e5c3
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:874:30
[INFO] [stdout]   22:     0x64470bd09d46 - core::ops::function::FnOnce::call_once::h3105aa58047e39e9
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf97fd - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf97fd - diplomat::tests::mod_with_enum::hdbfd8465b168302c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:834:9
[INFO] [stdout]   21:     0x64470bcf8d87 - diplomat::tests::mod_with_enum::{{closure}}::h1a317f33af6064ed
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:833:23
[INFO] [stdout]   22:     0x64470bd09e86 - core::ops::function::FnOnce::call_once::h523e573885d05018
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcfde1a - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcfde1a - diplomat::tests::self_params::hf00dacd084f33801
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:929:9
[INFO] [stdout]   21:     0x64470bcfd047 - diplomat::tests::self_params::{{closure}}::h5db61920d074bcef
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:928:21
[INFO] [stdout]   22:     0x64470bd09cc6 - core::ops::function::FnOnce::call_once::h114ff7a073353bc3
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bd05105 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bd05105 - diplomat::tests::traits::h826b2acf133223b0
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1056:9
[INFO] [stdout]   21:     0x64470bd03697 - diplomat::tests::traits::{{closure}}::h58689c7cb0bcdc32
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:1055:16
[INFO] [stdout]   22:     0x64470bd0a0b6 - core::ops::function::FnOnce::call_once::hbe2f83786478c29f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcfa578 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcfa578 - diplomat::tests::mod_with_write_result::h114b8889efdb2b86
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:856:9
[INFO] [stdout]   21:     0x64470bcf9a67 - diplomat::tests::mod_with_write_result::{{closure}}::h6edab38b862a12d0
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:855:31
[INFO] [stdout]   22:     0x64470bd09d86 - core::ops::function::FnOnce::call_once::h366e0eb4e43e864a
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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:     0x7f7439f165aa - std::backtrace_rs::backtrace::libunwind::trace::h8810477743020387
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7f7439f165aa - std::backtrace_rs::backtrace::trace_unsynchronized::h3aa55355dd6c54a6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f7439f165aa - std::sys::backtrace::_print_fmt::h8588b0f62410823f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7f7439f165aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h98c26ac25ffe89bb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7f7439f67173 - core::fmt::rt::Argument::fmt::hf95377f4aebd453b
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7f7439f67173 - core::fmt::write::h0dd5f6e2238c7982
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/fmt/mod.rs:1189:21
[INFO] [stdout]    6:     0x7f7439f09eb3 - std::io::Write::write_fmt::h03bb0ca26e6faf8c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/io/mod.rs:1884:15
[INFO] [stdout]    7:     0x7f7439f163f2 - std::sys::backtrace::BacktraceLock::print::h5c19c1c038ee186d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7f7439f18a1d - std::panicking::default_hook::{{closure}}::h77172f079a1fcb13
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7f7439f18827 - std::panicking::default_hook::he5f8e3b203ccddba
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x64470be523e7 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h7a3c7b4a1ae77f2f
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   11:     0x64470be523e7 - test::test_main::{{closure}}::hf0d3b69ae9b353d1
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x7f7439f19198 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h6332e82e7b189abd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1986:9
[INFO] [stdout]   13:     0x7f7439f19198 - std::panicking::rust_panic_with_hook::h53863d4e9018df39
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7f7439f18f5a - std::panicking::begin_panic_handler::{{closure}}::h67280e6fa0757873
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7f7439f16a89 - std::sys::backtrace::__rust_end_short_backtrace::h1dac3f54d6fbbeb2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7f7439f18bec - rust_begin_unwind
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7f7439f63580 - core::panicking::panic_fmt::h6792bd1b2bf01041
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panicking.rs:76:14
[INFO] [stdout]   18:     0x7f7439f63b06 - core::result::unwrap_failed::h05e0602ed34287c5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1699:5
[INFO] [stdout]   19:     0x64470bcf5833 - core::result::Result<T,E>::unwrap::h8f3319c8071571f5
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/result.rs:1104:23
[INFO] [stdout]   20:     0x64470bcf5833 - diplomat::tests::slices::hd8e25276241e6e47
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:693:9
[INFO] [stdout]   21:     0x64470bcf18e7 - diplomat::tests::slices::{{closure}}::h13a510f2b13c2f88
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:692:16
[INFO] [stdout]   22:     0x64470bd0a076 - core::ops::function::FnOnce::call_once::h9c1f42748e78cab9
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x64470be56f0b - core::ops::function::FnOnce::call_once::h871bf86719ec9aa4
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x64470be56f0b - test::__rust_begin_short_backtrace::h2167df1e2b7d76fd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:632:18
[INFO] [stdout]   25:     0x64470be568f8 - test::run_test_in_process::{{closure}}::h15d92f75a3adfb79
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:60
[INFO] [stdout]   26:     0x64470be568f8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb6c8955835a8dbbb
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x64470be568f8 - std::panicking::try::do_call::hc79d0fc888a0bd30
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x64470be568f8 - std::panicking::try::hb8a7878e3a8589d6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x64470be568f8 - std::panic::catch_unwind::hb8e4600ff0ff5cfa
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x64470be568f8 - test::run_test_in_process::hc2900b0b18688dd6
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:655:27
[INFO] [stdout]   31:     0x64470be568f8 - test::run_test::{{closure}}::hac2a9cb07be3d48d
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:576:43
[INFO] [stdout]   32:     0x64470be1a39a - test::run_test::{{closure}}::h4a5b729e66a38cd8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/test/src/lib.rs:606:41
[INFO] [stdout]   33:     0x64470be1a39a - std::sys::backtrace::__rust_begin_short_backtrace::h0496fb742492f573
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hbb6d257c550a54bd
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:561:17
[INFO] [stdout]   35:     0x64470be1dd14 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h46696fe4a6832328
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x64470be1dd14 - std::panicking::try::do_call::h2625a51b667bfb64
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x64470be1dd14 - std::panicking::try::hb956a59a1973aa4c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x64470be1dd14 - std::panic::catch_unwind::h64f3b9d1067ef6a0
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x64470be1dd14 - std::thread::Builder::spawn_unchecked_::{{closure}}::h42b2841295b6c0b2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/thread/mod.rs:559:30
[INFO] [stdout]   40:     0x64470be1dd14 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6127de71b8124639
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h42f0ba71002a1b2c
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   42:     0x7f7439f22e8b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::had9e47d7a3dcecb8
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/alloc/src/boxed.rs:1972:9
[INFO] [stdout]   43:     0x7f7439f22e8b - std::sys::pal::unix::thread::Thread::new::thread_start::h48cf765408f6f5f2
[INFO] [stdout]                                at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7f7439b94ac3 - <unknown>
[INFO] [stdout]   45:     0x7f7439c25a04 - 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 33.24s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "fd0acd0901782a2b410dd774ebccf3aa632d933b3b4c6c03370f45c9a7141cbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fd0acd0901782a2b410dd774ebccf3aa632d933b3b4c6c03370f45c9a7141cbc", kill_on_drop: false }`
[INFO] [stdout] fd0acd0901782a2b410dd774ebccf3aa632d933b3b4c6c03370f45c9a7141cbc
