[INFO] fetching crate rhai_codegen 1.6.0...
[INFO] testing rhai_codegen-1.6.0 against beta-2023-10-04 for beta-1.74-1
[INFO] extracting crate rhai_codegen 1.6.0 into /workspace/builds/worker-1-tc2/source
[INFO] validating manifest of crates.io crate rhai_codegen 1.6.0 on toolchain beta-2023-10-04
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-10-04" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate rhai_codegen 1.6.0
[INFO] finished tweaking crates.io crate rhai_codegen 1.6.0
[INFO] tweaked toml for crates.io crate rhai_codegen 1.6.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-10-04" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-10-04" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-10-04" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 02b43cbcac49634de0682a414dd2b51e60f57e271b7be321bf20208e239a5920
[INFO] running `Command { std: "docker" "start" "-a" "02b43cbcac49634de0682a414dd2b51e60f57e271b7be321bf20208e239a5920", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "02b43cbcac49634de0682a414dd2b51e60f57e271b7be321bf20208e239a5920", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "02b43cbcac49634de0682a414dd2b51e60f57e271b7be321bf20208e239a5920", kill_on_drop: false }`
[INFO] [stdout] 02b43cbcac49634de0682a414dd2b51e60f57e271b7be321bf20208e239a5920
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-10-04" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f5a96c8420fc4c0ed5c8a598f7aed83bc9c0c1f675208353e77a9cdf63ae3109
[INFO] running `Command { std: "docker" "start" "-a" "f5a96c8420fc4c0ed5c8a598f7aed83bc9c0c1f675208353e77a9cdf63ae3109", kill_on_drop: false }`
[INFO] [stderr]    Compiling rhai_codegen v1.6.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1.07s
[INFO] running `Command { std: "docker" "inspect" "f5a96c8420fc4c0ed5c8a598f7aed83bc9c0c1f675208353e77a9cdf63ae3109", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f5a96c8420fc4c0ed5c8a598f7aed83bc9c0c1f675208353e77a9cdf63ae3109", kill_on_drop: false }`
[INFO] [stdout] f5a96c8420fc4c0ed5c8a598f7aed83bc9c0c1f675208353e77a9cdf63ae3109
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-10-04" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e828129b379e3802bd34ab941b07e6dde1d7a81d69899c8aa37e2cf3327937c3
[INFO] running `Command { std: "docker" "start" "-a" "e828129b379e3802bd34ab941b07e6dde1d7a81d69899c8aa37e2cf3327937c3", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.69
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling serde v1.0.188
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling proc-macro-hack v0.5.20+deprecated
[INFO] [stderr]    Compiling once_cell v1.18.0
[INFO] [stderr]    Compiling serde_json v1.0.107
[INFO] [stderr]    Compiling trybuild v1.0.85
[INFO] [stderr]    Compiling static_assertions v1.1.0
[INFO] [stderr]    Compiling smartstring v1.0.1
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling ahash v0.8.3
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling termcolor v1.3.0
[INFO] [stderr]    Compiling getrandom v0.2.10
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.38
[INFO] [stderr]    Compiling const-random-macro v0.1.15
[INFO] [stderr]    Compiling const-random v0.1.15
[INFO] [stderr]    Compiling serde_derive v1.0.188
[INFO] [stderr]    Compiling rhai_codegen v1.6.0
[INFO] [stderr]    Compiling rhai_codegen v1.6.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling basic-toml v0.1.4
[INFO] [stderr]    Compiling smallvec v1.11.1
[INFO] [stderr]    Compiling rhai v1.16.2
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 30.64s
[INFO] running `Command { std: "docker" "inspect" "e828129b379e3802bd34ab941b07e6dde1d7a81d69899c8aa37e2cf3327937c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e828129b379e3802bd34ab941b07e6dde1d7a81d69899c8aa37e2cf3327937c3", kill_on_drop: false }`
[INFO] [stdout] e828129b379e3802bd34ab941b07e6dde1d7a81d69899c8aa37e2cf3327937c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-10-04" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 135b622756c750548ea14bdeb80b97917269f0024a2bd3b7edd430bee2e0aada
[INFO] running `Command { std: "docker" "start" "-a" "135b622756c750548ea14bdeb80b97917269f0024a2bd3b7edd430bee2e0aada", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rhai_codegen-c1e9272f1ea30d1f)
[INFO] [stdout] 
[INFO] [stdout] running 66 tests
[INFO] [stdout] test test::function::function_tests::private_fn ... ok
[INFO] [stdout] test test::function::function_tests::ref_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::one_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::mut_ref_second_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::immutable_receiver_fn ... ok
[INFO] [stdout] test test::function::function_tests::minimal_fn ... ok
[INFO] [stdout] test test::function::function_tests::receiver_fn ... ok
[INFO] [stdout] test test::function::function_tests::ptr_returning_fn ... ok
[INFO] [stdout] test test::function::function_tests::ref_returning_fn ... ok
[INFO] [stdout] test test::function::function_tests::ref_second_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::str_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::str_second_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::two_arg_fn ... ok
[INFO] [stdout] test test::function::function_tests::usize_returning_fn ... ok
[INFO] [stdout] test test::module::generate_tests::empty_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_constant_module_imports_preserved ... ok
[INFO] [stdout] test test::module::generate_tests::one_constant_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_constant_nested_module ... ok
[INFO] [stdout] test test::module::generate_tests::dual_constant_nested_module ... ok
[INFO] [stdout] test test::module::generate_tests::deep_tree_nested_module ... ok
[INFO] [stdout] test test::function::generate_tests::minimal_fn ... FAILED
[INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn_impl ... FAILED
[INFO] [stdout] test test::function::generate_tests::str_arg_fn ... FAILED
[INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn ... FAILED
[INFO] [stdout] test test::function::generate_tests::one_arg_fn_with_context ... FAILED
[INFO] [stdout] test test::function::generate_tests::mut_arg_usize_fn ... FAILED
[INFO] [stdout] test test::function::generate_tests::return_dynamic ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_getter_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::mut_ref_pure_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_factory_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_index_setter_and_rename_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_private_constant_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_private_fn_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_mut_ref_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_double_rename_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_double_arg_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_factory_fn_with_comments_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_fn_with_cfg_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_fn_nested_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_getter_and_rename_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_index_getter_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module ... FAILED
[INFO] [stdout] test test::module::module_tests::empty_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_index_setter_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_index_getter_and_rename_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_constant_type_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_setter_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_setter_and_rename_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_single_arg_fn_module ... FAILED
[INFO] [stdout] test test::module::module_tests::one_factory_fn_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_str_arg_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_skipped_sub_module ... FAILED
[INFO] [stdout] test test::module::module_tests::one_constant_nested_module ... ok
[INFO] [stdout] test test::module::module_tests::one_double_arg_fn_module ... ok
[INFO] [stdout] test test::module::module_tests::one_factory_fn_with_custom_type_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_skipped_fn_module ... ok
[INFO] [stdout] test test::module::module_tests::one_private_constant_module ... ok
[INFO] [stdout] test test::module::module_tests::one_constant_module ... ok
[INFO] [stdout] test test::function::generate_tests::two_arg_returning_usize_fn ... FAILED
[INFO] [stdout] test test::module::module_tests::one_skipped_fn_module ... ok
[INFO] [stdout] test test::module::generate_tests::one_single_arg_global_fn_module ... FAILED
[INFO] [stdout] test test::module::generate_tests::one_string_arg_fn_module ... FAILED
[INFO] [stdout] test test::module::module_tests::one_single_arg_fn_module ... ok
[INFO] [stdout] test test::module::module_tests::one_skipped_fn_nested_module ... ok
[INFO] [stdout] test test::module::module_tests::one_skipped_nested_module ... ok
[INFO] [stdout] test test::module::generate_tests::two_fn_overload_module ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::minimal_fn stdout ----
[INFO] [stdout] actual != expected, diverge at char 141
[INFO] [stdout] thread 'test::function::generate_tests::minimal_fn' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_do_nothing { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_do_nothing { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d77d1c - rhai_codegen::test::function::generate_tests::minimal_fn::hff0ccd2c43b605a2
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:300:9
[INFO] [stdout]   23:     0x557896d754f7 - rhai_codegen::test::function::generate_tests::minimal_fn::{{closure}}::h17b6ef3a691520a0
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:266:21
[INFO] [stdout]   24:     0x557896db41f6 - core::ops::function::FnOnce::call_once::h05cdee8de50f2017
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn_impl stdout ----
[INFO] [stdout] actual != expected, diverge at char 35
[INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn_impl' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [doc (hidden)] impl TestStruct { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for TestStruct { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } }"
[INFO] [stdout]  right: "# [doc (hidden)] impl TestStruct { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for TestStruct { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d82af4 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::h811441c6b5f3e33b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:451:9
[INFO] [stdout]   23:     0x557896d80917 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::{{closure}}::h0ca9a6ecc6b6242e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:426:32
[INFO] [stdout]   24:     0x557896db4d06 - core::ops::function::FnOnce::call_once::ha49112d8954ff6e3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::str_arg_fn stdout ----
[INFO] [stdout] actual != expected, diverge at char 144
[INFO] [stdout] thread 'test::function::generate_tests::str_arg_fn' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_special_print { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_immutable_string () . unwrap () ; Ok (Dynamic :: from (special_print (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (message : & str) -> RhaiResult { Ok (Dynamic :: from (special_print (message))) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_special_print { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"message: &str\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_immutable_string () . unwrap () ; Ok (Dynamic :: from (special_print (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (message : & str) -> RhaiResult { Ok (Dynamic :: from (special_print (message))) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d8c675 - rhai_codegen::test::function::generate_tests::str_arg_fn::h8d6bd1c5a1be82f5
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:575:9
[INFO] [stdout]   23:     0x557896d895d7 - rhai_codegen::test::function::generate_tests::str_arg_fn::{{closure}}::h442a7ecee6f5f0a9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:538:21
[INFO] [stdout]   24:     0x557896db50c6 - core::ops::function::FnOnce::call_once::hcc3cd7be2300d2b1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn stdout ----
[INFO] [stdout] actual != expected, diverge at char 143
[INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (x))) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (x))) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d7abfa - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::ha8307ef5e5c6da78
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:340:9
[INFO] [stdout]   23:     0x557896d77d97 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::{{closure}}::h9181845009fc0f7b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:304:27
[INFO] [stdout]   24:     0x557896db4db6 - core::ops::function::FnOnce::call_once::hadb6e8e75fd335e5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::one_arg_fn_with_context stdout ----
[INFO] [stdout] actual != expected, diverge at char 143
[INFO] [stdout] thread 'test::function::generate_tests::one_arg_fn_with_context' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (context . unwrap () , arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { true } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (context : NativeCallContext , x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (context , x))) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (context . unwrap () , arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { true } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (context : NativeCallContext , x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (context , x))) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d7dcf6 - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::hd762e9e2c0e59859
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:381:9
[INFO] [stdout]   23:     0x557896d7ac77 - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::{{closure}}::hb76923b6f9b7a7e6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:344:34
[INFO] [stdout]   24:     0x557896db54b6 - core::ops::function::FnOnce::call_once::hf38610657fad5f3b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::mut_arg_usize_fn stdout ----
[INFO] [stdout] actual != expected, diverge at char 140
[INFO] [stdout] thread 'test::function::generate_tests::mut_arg_usize_fn' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_increment { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < usize > () ; let arg0 = & mut args [0usize] . write_lock :: < usize > () . unwrap () ; Ok (Dynamic :: from (increment (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : & mut usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (increment (x , y))) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_increment { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut usize\" , \"y: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < usize > () ; let arg0 = & mut args [0usize] . write_lock :: < usize > () . unwrap () ; Ok (Dynamic :: from (increment (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : & mut usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (increment (x , y))) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d8953f - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::h47b23f8228fa9900
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:534:9
[INFO] [stdout]   23:     0x557896d86047 - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::{{closure}}::h2bbef3feb878f848
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:496:27
[INFO] [stdout]   24:     0x557896db4ea6 - core::ops::function::FnOnce::call_once::hb7dcc994f451ebdc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::return_dynamic stdout ----
[INFO] [stdout] actual != expected, diverge at char 145
[INFO] [stdout] thread 'test::function::generate_tests::return_dynamic' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_return_dynamic { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_return_dynamic { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"rhai::Dynamic\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d8089c - rhai_codegen::test::function::generate_tests::return_dynamic::h0fb8541368abf0ff
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:422:9
[INFO] [stdout]   23:     0x557896d7dd87 - rhai_codegen::test::function::generate_tests::return_dynamic::{{closure}}::h8e58e5d14291d26e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:385:25
[INFO] [stdout]   24:     0x557896db4376 - core::ops::function::FnOnce::call_once::h119c15ecd8e437ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_getter_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 507
[INFO] [stdout] thread 'test::module::generate_tests::one_getter_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"u64\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d3912a - rhai_codegen::test::module::generate_tests::one_getter_fn_module::h8c8ca0b19c17d139
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1656:9
[INFO] [stdout]   23:     0x557896d34e47 - rhai_codegen::test::module::generate_tests::one_getter_fn_module::{{closure}}::ha21c371b2eb542dc
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1599:31
[INFO] [stdout]   24:     0x557896db4536 - core::ops::function::FnOnce::call_once::h20fe452344fbdbbe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::mut_ref_pure_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 515
[INFO] [stdout] thread 'test::module::generate_tests::mut_ref_pure_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"foo\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] , foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct foo_token () ; # [doc (hidden)] impl foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"foo\" , FnNamespace :: Internal , FnAccess :: Public , Some (foo_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] , foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct foo_token () ; # [doc (hidden)] impl foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"y: INT\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d259a8 - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::hfd02944cbdc94d52
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1359:9
[INFO] [stdout]   23:     0x557896d212d7 - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::{{closure}}::h3480c62b3d7fb26f
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1301:33
[INFO] [stdout]   24:     0x557896db49f6 - core::ops::function::FnOnce::call_once::h71dad31ca75d183a
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 502
[INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896cebd63 - rhai_codegen::test::module::generate_tests::one_factory_fn_module::h33233bd1806c1da1
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:408:9
[INFO] [stdout]   23:     0x557896ce8617 - rhai_codegen::test::module::generate_tests::one_factory_fn_module::{{closure}}::hcc552e2f17fb42cc
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:353:32
[INFO] [stdout]   24:     0x557896db46f6 - core::ops::function::FnOnce::call_once::h3912afa633d24023
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_index_setter_and_rename_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 553
[INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_and_rename_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn set_by_index (x : & mut MyCollection , i : u64 , item : FLOAT) { x . entry (i) . set (item) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct set_by_index_token () ; # [doc (hidden)] impl set_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg2 = mem :: take (args [2usize]) . cast :: < FLOAT > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (set_by_index (arg0 , arg1 , arg2))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn set_by_index (x : & mut MyCollection , i : u64 , item : FLOAT) { x . entry (i) . set (item) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set\" , FnNamespace :: Internal , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct set_by_index_token () ; # [doc (hidden)] impl set_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"item: FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg2 = mem :: take (args [2usize]) . cast :: < FLOAT > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (set_by_index (arg0 , arg1 , arg2))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d5fd77 - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::h7865e67ce943cd19
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:2173:9
[INFO] [stdout]   23:     0x557896d5a707 - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::{{closure}}::h122871859dd3a9b0
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:2111:48
[INFO] [stdout]   24:     0x557896db4ab6 - core::ops::function::FnOnce::call_once::h78ebb3d3af27c989
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_mut_ref_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 513
[INFO] [stdout] thread 'test::module::generate_tests::one_mut_ref_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d2996f - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::h0524b98a6cc7b4dd
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1419:9
[INFO] [stdout]   23:     0x557896d25a27 - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::{{closure}}::ha0ae3d6dc264c60a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1363:32
[INFO] [stdout]   24:     0x557896db4736 - core::ops::function::FnOnce::call_once::h4a270cbdd1492fb7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_double_rename_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 503
[INFO] [stdout] thread 'test::module::generate_tests::one_double_rename_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"+\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_together_token () ; # [doc (hidden)] impl add_together_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"+\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_together_token () ; # [doc (hidden)] impl add_together_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d09a28 - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::hc719a44cf1bdaec4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:850:9
[INFO] [stdout]   23:     0x557896d04687 - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::{{closure}}::hfca1faa69a0ce3a9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:786:38
[INFO] [stdout]   24:     0x557896db4336 - core::ops::function::FnOnce::call_once::h0e5af5f5b73c4903
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_double_arg_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 512
[INFO] [stdout] thread 'test::module::generate_tests::one_double_arg_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_together_token () ; # [doc (hidden)] impl add_together_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_together_token () ; # [doc (hidden)] impl add_together_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d04609 - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::h67aa214df52fbd81
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:782:9
[INFO] [stdout]   23:     0x557896d00167 - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::{{closure}}::ha27939ee0d572183
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:725:35
[INFO] [stdout]   24:     0x557896db45f6 - core::ops::function::FnOnce::call_once::h3288e1ae1c2bf731
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_with_comments_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 671
[INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_with_comments_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [doc = r\" This is the one_fn module!\"] # [doc = r\" block doc-comment\n             *  multi-line\n             \"] # [doc = r\" Another line!\"] # [doc = r\" Final line!\"] # [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [doc = r\" We are the world!\"] pub type World = String ; # [doc = r\" This is a doc-comment.\"] # [doc = r\" Another line.\"] # [doc = r\" block doc-comment \"] # [doc = r\" Final line.\"] # [doc = r\" doc-comment\n                    in multiple lines\n                 \"] pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [] , get_mystic_number_token () . into ()) ; m . set_custom_type :: < String > (\"World\") ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [doc = r\" This is the one_fn module!\"] # [doc = r\" block doc-comment\n             *  multi-line\n             \"] # [doc = r\" Another line!\"] # [doc = r\" Final line!\"] # [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [doc = r\" We are the world!\"] pub type World = String ; # [doc = r\" This is a doc-comment.\"] # [doc = r\" Another line.\"] # [doc = r\" block doc-comment \"] # [doc = r\" Final line.\"] # [doc = r\" doc-comment\n                    in multiple lines\n                 \"] pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; m . set_doc (\"/// This is the one_fn module!\\n/** block doc-comment\\n             *  multi-line\\n             */\\n/// Another line!\\n/// Final line!\") ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn_with_comments (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , & [\"/// This is a doc-comment.\\n/// Another line.\\n/// block doc-comment \\n/// Final line.\" , \"/** doc-comment\\n                    in multiple lines\\n                 */\"] , get_mystic_number_token () . into ()) ; m . set_custom_type_with_comments :: < String > (\"World\" , & [\"/// We are the world!\"]) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896cf0d20 - rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::h00d185a8340006d6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:505:9
[INFO] [stdout]   23:     0x557896cebdd7 - rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::{{closure}}::heb8df916b8357dbb
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:412:46
[INFO] [stdout]   24:     0x557896db4276 - core::ops::function::FnOnce::call_once::h085a137a176f52ed
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_fn_with_cfg_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 611
[INFO] [stdout] thread 'test::module::generate_tests::one_fn_with_cfg_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [cfg (not (feature = \"no_float\"))] # [allow (clippy :: needless_pass_by_value)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { # [cfg (not (feature = \"no_float\"))] self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { # [cfg (not (feature = \"no_float\"))] m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [cfg (not (feature = \"no_float\"))] # [allow (clippy :: needless_pass_by_value)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { # [cfg (not (feature = \"no_float\"))] self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { # [cfg (not (feature = \"no_float\"))] m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d34dcd - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::ha4be33b9e8ac3bc8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1595:9
[INFO] [stdout]   23:     0x557896d2efa7 - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::{{closure}}::h56684568757156e5
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1507:33
[INFO] [stdout]   24:     0x557896db54f6 - core::ops::function::FnOnce::call_once::hf850428030a47a8a
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_fn_nested_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 574
[INFO] [stdout] thread 'test::module::generate_tests::one_fn_nested_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct increment_token () ; # [doc (hidden)] impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d2ef2b - rhai_codegen::test::module::generate_tests::one_fn_nested_module::h8f668ddec8545357
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1503:9
[INFO] [stdout]   23:     0x557896d299e7 - rhai_codegen::test::module::generate_tests::one_fn_nested_module::{{closure}}::h0d9820b0ec3b4031
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1423:31
[INFO] [stdout]   24:     0x557896db48a6 - core::ops::function::FnOnce::call_once::h5faf021085153e8e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_getter_and_rename_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 505
[INFO] [stdout] thread 'test::module::generate_tests::one_getter_and_rename_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"square\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"square\" , FnNamespace :: Internal , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"u64\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d3da47 - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::hf2ecb494498d003b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1720:9
[INFO] [stdout]   23:     0x557896d391a7 - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::{{closure}}::hae561d3aed3a0b75
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1660:42
[INFO] [stdout]   24:     0x557896db4826 - core::ops::function::FnOnce::call_once::h54395594f80ac702
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 537
[INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [doc (hidden)] impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [doc (hidden)] impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d4b6f8 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::h2edf9bf91837b8fa
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1909:9
[INFO] [stdout]   23:     0x557896d46f77 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::{{closure}}::h650a1380d85950b9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1851:37
[INFO] [stdout]   24:     0x557896db4236 - core::ops::function::FnOnce::call_once::h080b271b5f0e199b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 589
[INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { # [cfg (hello)] # [some_other_attr] pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { # [cfg (hello)] m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [cfg (hello)] # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [cfg (hello)] # [doc (hidden)] impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } # [cfg (hello)] impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { # [cfg (hello)] # [some_other_attr] pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { # [cfg (hello)] m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [cfg (hello)] # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [cfg (hello)] # [doc (hidden)] impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } # [cfg (hello)] impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d508b6 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::ha217213768b313ce
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1979:9
[INFO] [stdout]   23:     0x557896d4b777 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::{{closure}}::hcad1a26d3a068647
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1913:51
[INFO] [stdout]   24:     0x557896db46b6 - core::ops::function::FnOnce::call_once::h36a50079dbae64d0
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_index_setter_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 558
[INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn set_by_index (x : & mut MyCollection , i : u64 , item : FLOAT) { x . entry (i) . set (item) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct set_by_index_token () ; # [doc (hidden)] impl set_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg2 = mem :: take (args [2usize]) . cast :: < FLOAT > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (set_by_index (arg0 , arg1 , arg2))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn set_by_index (x : & mut MyCollection , i : u64 , item : FLOAT) { x . entry (i) . set (item) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct set_by_index_token () ; # [doc (hidden)] impl set_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"item: FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg2 = mem :: take (args [2usize]) . cast :: < FLOAT > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (set_by_index (arg0 , arg1 , arg2))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d5a696 - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::h6e2a79b66b60e82f
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:2107:9
[INFO] [stdout]   23:     0x557896d557d7 - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::{{closure}}::h0507db049821be05
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:2048:37
[INFO] [stdout]   24:     0x557896db4976 - core::ops::function::FnOnce::call_once::h6bbd9048626cf749
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_index_getter_and_rename_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 532
[INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_and_rename_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [doc (hidden)] impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_by_index_token () ; # [doc (hidden)] impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < MyCollection > () . unwrap () ; Ok (Dynamic :: from (get_by_index (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d5575f - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::h047d753d65e001d2
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:2044:9
[INFO] [stdout]   23:     0x557896d50927 - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::{{closure}}::h0ca6e16a0bbeb7ef
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1983:48
[INFO] [stdout]   24:     0x557896db5306 - core::ops::function::FnOnce::call_once::he60ec97b9e7e2751
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_constant_type_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 646
[INFO] [stdout] thread 'test::module::generate_tests::one_constant_type_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_constant { # [derive (Debug , Clone)] pub struct Foo (pub INT) ; pub type Hello = Foo ; pub const MYSTIC_NUMBER : Foo = Foo (42) ; pub fn get_mystic_number (x : & mut Hello) -> INT { x . 0 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < Hello > ()] , get_mystic_number_token () . into ()) ; m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; m . set_custom_type :: < Foo > (\"Hello\") ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < Hello > ()] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < Hello > () . unwrap () ; Ok (Dynamic :: from (get_mystic_number (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_constant { # [derive (Debug , Clone)] pub struct Foo (pub INT) ; pub type Hello = Foo ; pub const MYSTIC_NUMBER : Foo = Foo (42) ; pub fn get_mystic_number (x : & mut Hello) -> INT { x . 0 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [TypeId :: of :: < Hello > ()] , get_mystic_number_token () . into ()) ; m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; m . set_custom_type :: < Foo > (\"Hello\") ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut Hello\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < Hello > ()] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = & mut args [0usize] . write_lock :: < Hello > () . unwrap () ; Ok (Dynamic :: from (get_mystic_number (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d0e5ff - rhai_codegen::test::module::generate_tests::one_constant_type_module::hc77d721668f4b47f
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:927:9
[INFO] [stdout]   23:     0x557896d09aa7 - rhai_codegen::test::module::generate_tests::one_constant_type_module::{{closure}}::h3f763b944a8772bb
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:854:35
[INFO] [stdout]   24:     0x557896db5226 - core::ops::function::FnOnce::call_once::hd689b5310196e901
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_setter_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 509
[INFO] [stdout] thread 'test::module::generate_tests::one_setter_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"y: u64\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d4214e - rhai_codegen::test::module::generate_tests::one_setter_fn_module::hbb07cc52f0d87cc1
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1782:9
[INFO] [stdout]   23:     0x557896d3dac7 - rhai_codegen::test::module::generate_tests::one_setter_fn_module::{{closure}}::h17fb6e30f29e3705
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1724:31
[INFO] [stdout]   24:     0x557896db5266 - core::ops::function::FnOnce::call_once::hda023a863f45aba1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_setter_and_rename_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 506
[INFO] [stdout] thread 'test::module::generate_tests::one_setter_and_rename_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set_sq\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set_sq\" , FnNamespace :: Internal , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct int_foo_token () ; # [doc (hidden)] impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"y: u64\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg1 = mem :: take (args [1usize]) . cast :: < u64 > () ; let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { true } # [inline (always)] fn is_pure (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d46f05 - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::haa062880b9385384
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1847:9
[INFO] [stdout]   23:     0x557896d421c7 - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::{{closure}}::he1842174fdd68fcd
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1786:42
[INFO] [stdout]   24:     0x557896db4636 - core::ops::function::FnOnce::call_once::h34ee2b6d54189276
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_single_arg_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 498
[INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896cf8cdd - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::h0670cd3fec24dcfd
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:626:9
[INFO] [stdout]   23:     0x557896cf4e27 - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::{{closure}}::hffb4fd9ed94d33f4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:570:35
[INFO] [stdout]   24:     0x557896db4676 - core::ops::function::FnOnce::call_once::h352921b845f49520
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_str_arg_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 497
[INFO] [stdout] thread 'test::module::generate_tests::one_str_arg_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct print_out_to_token () ; # [doc (hidden)] impl print_out_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_immutable_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (print_out_to_token :: PARAM_NAMES) , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct print_out_to_token () ; # [doc (hidden)] impl print_out_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &str\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_immutable_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d1d37a - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::h4c27f9c9e25d3b4e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1237:9
[INFO] [stdout]   23:     0x557896d194d7 - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::{{closure}}::h3d6c506cc5acf962
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1181:32
[INFO] [stdout]   24:     0x557896db5146 - core::ops::function::FnOnce::call_once::hce328b5d6b675b3d
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_skipped_sub_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 610
[INFO] [stdout] thread 'test::module::generate_tests::one_skipped_sub_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (clippy :: needless_pass_by_value)] pub mod inner_secrets { pub const SECRET_NUMBER : INT = 86 ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (clippy :: needless_pass_by_value)] pub mod inner_secrets { pub const SECRET_NUMBER : INT = 86 ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct get_mystic_number_token () ; # [doc (hidden)] impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d17f9f - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::h9681f666d8a476f3
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1143:9
[INFO] [stdout]   23:     0x557896d141e7 - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::{{closure}}::h83f12fa7aa275540
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1080:33
[INFO] [stdout]   24:     0x557896db5046 - core::ops::function::FnOnce::call_once::hc97b6532bbf6443f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::function::generate_tests::two_arg_returning_usize_fn stdout ----
[INFO] [stdout] actual != expected, diverge at char 143
[INFO] [stdout] thread 'test::function::generate_tests::two_arg_returning_usize_fn' panicked at src/test/function.rs:262:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [automatically_derived] pub mod rhai_fn_add_together { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; let arg1 = mem :: take (args [1usize]) . cast :: < usize > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (add_together (x , y))) } }"
[INFO] [stdout]  right: "# [automatically_derived] pub mod rhai_fn_add_together { use super :: * ; # [doc (hidden)] pub struct Token () ; # [doc (hidden)] impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"y: usize\" , \"usize\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; let arg1 = mem :: take (args [1usize]) . cast :: < usize > () ; Ok (Dynamic :: from (add_together (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (unused)] # [doc (hidden)] # [inline (always)] pub fn dynamic_result_fn (x : usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (add_together (x , y))) } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896d7539e - rhai_codegen::test::function::generate_tests::assert_streams_eq::h770dab79aa3b1b6c
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:262:9
[INFO] [stdout]   22:     0x557896d85fc7 - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::he029099395ad4028
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:492:9
[INFO] [stdout]   23:     0x557896d82b77 - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::{{closure}}::hd074859e79fbb613
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/function.rs:455:37
[INFO] [stdout]   24:     0x557896db4866 - core::ops::function::FnOnce::call_once::h5d0647974e92a612
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_single_arg_global_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 503
[INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_global_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Global , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896cf4dac - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::h955587665b8a88ce
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:566:9
[INFO] [stdout]   23:     0x557896cf0d97 - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::{{closure}}::h974642f6368d73e6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:509:42
[INFO] [stdout]   24:     0x557896db5086 - core::ops::function::FnOnce::call_once::hcb8f5158d2a3bfad
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::one_string_arg_fn_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 498
[INFO] [stdout] thread 'test::module::generate_tests::one_string_arg_fn_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct print_out_to_token () ; # [doc (hidden)] impl print_out_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (print_out_to_token :: PARAM_NAMES) , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct print_out_to_token () ; # [doc (hidden)] impl print_out_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: String\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . into_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d21261 - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::h7be4a9a9410259a7
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1297:9
[INFO] [stdout]   23:     0x557896d1d3f7 - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::{{closure}}::h773167f2788b10fa
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:1241:35
[INFO] [stdout]   24:     0x557896db42f6 - core::ops::function::FnOnce::call_once::h0b5aeab127267b2d
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- test::module::generate_tests::two_fn_overload_module stdout ----
[INFO] [stdout] actual != expected, diverge at char 547
[INFO] [stdout] thread 'test::module::generate_tests::two_fn_overload_module' panicked at src/test/module.rs:318:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: "# [allow (clippy :: needless_pass_by_value)] pub mod two_fns { pub fn add_one_to (x : INT) -> INT { x + 1 } pub fn add_n_to (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_n_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_n_to_token () ; # [doc (hidden)] impl add_n_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_n_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_n_to (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout]  right: "# [allow (clippy :: needless_pass_by_value)] pub mod two_fns { pub fn add_one_to (x : INT) -> INT { x + 1 } pub fn add_n_to (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] # [doc (hidden)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_n_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_n_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_one_to_token () ; # [doc (hidden)] impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_one_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } # [allow (non_camel_case_types)] # [doc (hidden)] pub struct add_n_to_token () ; # [doc (hidden)] impl add_n_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_n_to_token { # [inline (always)] fn call (& self , context : Option < NativeCallContext > , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < INT > () ; let arg1 = mem :: take (args [1usize]) . cast :: < INT > () ; Ok (Dynamic :: from (add_n_to (arg0 , arg1))) } # [inline (always)] fn is_method_call (& self) -> bool { false } # [inline (always)] fn is_pure (& self) -> bool { true } # [inline (always)] fn has_context (& self) -> bool { false } } }"
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7f00a2a4633c - std::backtrace_rs::backtrace::libunwind::trace::h4defc72db73cd441
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stdout]    1:     0x7f00a2a4633c - std::backtrace_rs::backtrace::trace_unsynchronized::hb1d8a8b488fa82dc
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7f00a2a4633c - std::sys_common::backtrace::_print_fmt::h3adc87026f68ef7c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:67:5
[INFO] [stdout]    3:     0x7f00a2a4633c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae0f2018b67c9dd2
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:44:22
[INFO] [stdout]    4:     0x7f00a2aabf9c - core::fmt::rt::Argument::fmt::h0aeca3e83668e143
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/rt.rs:138:9
[INFO] [stdout]    5:     0x7f00a2aabf9c - core::fmt::write::h96bf1b6ef709071f
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/fmt/mod.rs:1114:21
[INFO] [stdout]    6:     0x7f00a2a390be - std::io::Write::write_fmt::hcfdabc06f3bbacfb
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/io/mod.rs:1763:15
[INFO] [stdout]    7:     0x7f00a2a46124 - std::sys_common::backtrace::_print::hd4ef7cdeb67d2ffe
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:47:5
[INFO] [stdout]    8:     0x7f00a2a46124 - std::sys_common::backtrace::print::hf4a0f6d32c50b08e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:34:9
[INFO] [stdout]    9:     0x7f00a2a49003 - std::panicking::default_hook::{{closure}}::hf64a6c095f9954ab
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:272:22
[INFO] [stdout]   10:     0x7f00a2a48ca7 - std::panicking::default_hook::h81f354a056ffc649
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:289:9
[INFO] [stdout]   11:     0x7f00a2b4274c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h16c22045506fc2d3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   12:     0x7f00a2b4274c - test::test_main::{{closure}}::hd8d5b5bb0900d116
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:136:21
[INFO] [stdout]   13:     0x7f00a2a49831 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2d4fa3dcc7099287
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2021:9
[INFO] [stdout]   14:     0x7f00a2a49831 - std::panicking::rust_panic_with_hook::h1387a687c5711a74
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:735:13
[INFO] [stdout]   15:     0x7f00a2a495b1 - std::panicking::begin_panic_handler::{{closure}}::hf2467c63b8ad7371
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:609:13
[INFO] [stdout]   16:     0x7f00a2a46866 - std::sys_common::backtrace::__rust_end_short_backtrace::h0b678d0f70fbf3ba
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:170:18
[INFO] [stdout]   17:     0x7f00a2a49302 - rust_begin_unwind
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:597:5
[INFO] [stdout]   18:     0x7f00a2aa8625 - core::panicking::panic_fmt::h8398f9bd40a2efcd
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:72:14
[INFO] [stdout]   19:     0x7f00a2aa8b3b - core::panicking::assert_failed_inner::h2764bbb56f9308bd
[INFO] [stdout]   20:     0x557896dbae2e - core::panicking::assert_failed::hdff5c83897fc7131
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panicking.rs:270:5
[INFO] [stdout]   21:     0x557896ce71ae - rhai_codegen::test::module::generate_tests::assert_streams_eq::hbf9eaf487ad6d03d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:318:9
[INFO] [stdout]   22:     0x557896d000f0 - rhai_codegen::test::module::generate_tests::two_fn_overload_module::h4caf835e1df90cd8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:721:9
[INFO] [stdout]   23:     0x557896cf8d57 - rhai_codegen::test::module::generate_tests::two_fn_overload_module::{{closure}}::h93e23bc121a9886e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/test/module.rs:630:33
[INFO] [stdout]   24:     0x557896db4576 - core::ops::function::FnOnce::call_once::h2cf602491974e320
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x7f00a2b482cf - core::ops::function::FnOnce::call_once::h643f2128867058a3
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   26:     0x7f00a2b482cf - test::__rust_begin_short_backtrace::h5ffb0cd5eda0704e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:626:18
[INFO] [stdout]   27:     0x7f00a2b4735e - test::run_test_in_process::{{closure}}::h5f3f2c50e89f10f6
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:60
[INFO] [stdout]   28:     0x7f00a2b4735e - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc7bb05d011c94549
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   29:     0x7f00a2b4735e - std::panicking::try::do_call::hc2952fe5005bc351
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   30:     0x7f00a2b4735e - std::panicking::try::hac512ea76b947046
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   31:     0x7f00a2b4735e - std::panic::catch_unwind::h11d3922f3ba31e4b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   32:     0x7f00a2b4735e - test::run_test_in_process::h25ad0551c6887d56
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:649:27
[INFO] [stdout]   33:     0x7f00a2b4735e - test::run_test::{{closure}}::h52dd364f39118330
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:572:43
[INFO] [stdout]   34:     0x7f00a2b0b283 - test::run_test::{{closure}}::ha452ffb46088765b
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/test/src/lib.rs:600:41
[INFO] [stdout]   35:     0x7f00a2b0b283 - std::sys_common::backtrace::__rust_begin_short_backtrace::he611e39b84a68325
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys_common/backtrace.rs:154:18
[INFO] [stdout]   36:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h1f6f90a021c1ddc7
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:529:17
[INFO] [stdout]   37:     0x7f00a2b10ecb - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hde337ea7211d438c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/panic/unwind_safe.rs:271:9
[INFO] [stdout]   38:     0x7f00a2b10ecb - std::panicking::try::do_call::hd7199cb78d8df0a5
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:504:40
[INFO] [stdout]   39:     0x7f00a2b10ecb - std::panicking::try::hed28d716c8fe6b32
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panicking.rs:468:19
[INFO] [stdout]   40:     0x7f00a2b10ecb - std::panic::catch_unwind::h8ab888e8615782f1
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/panic.rs:142:14
[INFO] [stdout]   41:     0x7f00a2b10ecb - std::thread::Builder::spawn_unchecked_::{{closure}}::h3acf7202ecbb668e
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/thread/mod.rs:528:30
[INFO] [stdout]   42:     0x7f00a2b10ecb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hc15bd9319945b48c
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   43:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h9281b5fb2305c571
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   44:     0x7f00a2a54395 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hae9cb5d464ed2f06
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/alloc/src/boxed.rs:2007:9
[INFO] [stdout]   45:     0x7f00a2a54395 - std::sys::unix::thread::Thread::new::thread_start::he78e4489414f6551
[INFO] [stdout]                                at /rustc/b5c050febf10c9bcc0459d41fe2a1e190ad30b8d/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stdout]   46:     0x7f00a2775b43 - <unknown>
[INFO] [stdout]   47:     0x7f00a2806bb4 - __clone
[INFO] [stdout]   48:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     test::function::generate_tests::minimal_fn
[INFO] [stdout]     test::function::generate_tests::mut_arg_usize_fn
[INFO] [stdout]     test::function::generate_tests::one_arg_fn_with_context
[INFO] [stdout]     test::function::generate_tests::one_arg_usize_fn
[INFO] [stdout]     test::function::generate_tests::one_arg_usize_fn_impl
[INFO] [stdout]     test::function::generate_tests::return_dynamic
[INFO] [stdout]     test::function::generate_tests::str_arg_fn
[INFO] [stdout]     test::function::generate_tests::two_arg_returning_usize_fn
[INFO] [stdout]     test::module::generate_tests::mut_ref_pure_fn_module
[INFO] [stdout]     test::module::generate_tests::one_constant_type_module
[INFO] [stdout]     test::module::generate_tests::one_double_arg_fn_module
[INFO] [stdout]     test::module::generate_tests::one_double_rename_fn_module
[INFO] [stdout]     test::module::generate_tests::one_factory_fn_module
[INFO] [stdout]     test::module::generate_tests::one_factory_fn_with_comments_module
[INFO] [stdout]     test::module::generate_tests::one_fn_nested_module
[INFO] [stdout]     test::module::generate_tests::one_fn_with_cfg_module
[INFO] [stdout]     test::module::generate_tests::one_getter_and_rename_fn_module
[INFO] [stdout]     test::module::generate_tests::one_getter_fn_module
[INFO] [stdout]     test::module::generate_tests::one_index_getter_and_rename_fn_module
[INFO] [stdout]     test::module::generate_tests::one_index_getter_fn_module
[INFO] [stdout]     test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module
[INFO] [stdout]     test::module::generate_tests::one_index_setter_and_rename_fn_module
[INFO] [stdout]     test::module::generate_tests::one_index_setter_fn_module
[INFO] [stdout]     test::module::generate_tests::one_mut_ref_fn_module
[INFO] [stdout]     test::module::generate_tests::one_setter_and_rename_fn_module
[INFO] [stdout]     test::module::generate_tests::one_setter_fn_module
[INFO] [stdout]     test::module::generate_tests::one_single_arg_fn_module
[INFO] [stdout]     test::module::generate_tests::one_single_arg_global_fn_module
[INFO] [stdout]     test::module::generate_tests::one_skipped_sub_module
[INFO] [stdout]     test::module::generate_tests::one_str_arg_fn_module
[INFO] [stdout]     test::module::generate_tests::one_string_arg_fn_module
[INFO] [stdout]     test::module::generate_tests::two_fn_overload_module
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 34 passed; 32 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "135b622756c750548ea14bdeb80b97917269f0024a2bd3b7edd430bee2e0aada", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "135b622756c750548ea14bdeb80b97917269f0024a2bd3b7edd430bee2e0aada", kill_on_drop: false }`
[INFO] [stdout] 135b622756c750548ea14bdeb80b97917269f0024a2bd3b7edd430bee2e0aada
