[INFO] fetching crate poet_rhai_codegen 3.1.0... [INFO] testing poet_rhai_codegen-3.1.0 against 1.91.0 for beta-1.92-2 [INFO] extracting crate poet_rhai_codegen 3.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate poet_rhai_codegen 3.1.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate poet_rhai_codegen 3.1.0 [INFO] tweaked toml for crates.io crate poet_rhai_codegen 3.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate poet_rhai_codegen 3.1.0 on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate poet_rhai_codegen 3.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thin-vec v0.2.14 [INFO] [stderr] Downloaded rhai_codegen v2.2.0 [INFO] [stderr] Downloaded rhai v1.22.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31d6a6e2e8e9146eaad9dc5e419c1f251ebc62a7f419c49fbd7220d36ecd8bf3 [INFO] running `Command { std: "docker" "start" "-a" "31d6a6e2e8e9146eaad9dc5e419c1f251ebc62a7f419c49fbd7220d36ecd8bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31d6a6e2e8e9146eaad9dc5e419c1f251ebc62a7f419c49fbd7220d36ecd8bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31d6a6e2e8e9146eaad9dc5e419c1f251ebc62a7f419c49fbd7220d36ecd8bf3", kill_on_drop: false }` [INFO] [stdout] 31d6a6e2e8e9146eaad9dc5e419c1f251ebc62a7f419c49fbd7220d36ecd8bf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2785c2944c453928435b8042bc1686083654d9f602edea392ea0e6853cbee3cd [INFO] running `Command { std: "docker" "start" "-a" "2785c2944c453928435b8042bc1686083654d9f602edea392ea0e6853cbee3cd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling poet_rhai_codegen v3.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.63s [INFO] running `Command { std: "docker" "inspect" "2785c2944c453928435b8042bc1686083654d9f602edea392ea0e6853cbee3cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2785c2944c453928435b8042bc1686083654d9f602edea392ea0e6853cbee3cd", kill_on_drop: false }` [INFO] [stdout] 2785c2944c453928435b8042bc1686083654d9f602edea392ea0e6853cbee3cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d74f1836cd53dc159330745ac2a04811280fc5a2c28f1cf62431032b3a674e8e [INFO] running `Command { std: "docker" "start" "-a" "d74f1836cd53dc159330745ac2a04811280fc5a2c28f1cf62431032b3a674e8e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling toml_writer v1.0.2 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling toml_parser v1.0.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling rhai_codegen v2.2.0 [INFO] [stderr] Compiling poet_rhai_codegen v3.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_spanned v1.0.0 [INFO] [stderr] Compiling toml_datetime v0.7.0 [INFO] [stderr] Compiling thin-vec v0.2.14 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling toml v0.9.5 [INFO] [stderr] Compiling trybuild v1.0.110 [INFO] [stderr] Compiling rhai v1.22.2 [INFO] [stdout] warning: unused imports: `Dynamic`, `EvalAltResult`, and `Position` [INFO] [stdout] --> tests/test_custom_type.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use rhai::{CustomType, Dynamic, Engine, EvalAltResult, Position, TypeBuilder, INT}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/test_custom_type.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Bar( [INFO] [stdout] | --- field in this struct [INFO] [stdout] 7 | #[rhai_type(skip)] rhai::FLOAT, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bar` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - #[rhai_type(skip)] rhai::FLOAT, [INFO] [stdout] 7 + #[rhai_type(skip)] (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 49.80s [INFO] running `Command { std: "docker" "inspect" "d74f1836cd53dc159330745ac2a04811280fc5a2c28f1cf62431032b3a674e8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d74f1836cd53dc159330745ac2a04811280fc5a2c28f1cf62431032b3a674e8e", kill_on_drop: false }` [INFO] [stdout] d74f1836cd53dc159330745ac2a04811280fc5a2c28f1cf62431032b3a674e8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1e7b5cf33ab8c8e6e22f77eed1c83d1e843cf7455e9c9be1b4841c7a7070564 [INFO] running `Command { std: "docker" "start" "-a" "b1e7b5cf33ab8c8e6e22f77eed1c83d1e843cf7455e9c9be1b4841c7a7070564", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Dynamic`, `EvalAltResult`, and `Position` [INFO] [stderr] --> tests/test_custom_type.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use rhai::{CustomType, Dynamic, Engine, EvalAltResult, Position, TypeBuilder, INT}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> tests/test_custom_type.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Bar( [INFO] [stderr] | --- field in this struct [INFO] [stderr] 7 | #[rhai_type(skip)] rhai::FLOAT, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Bar` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 7 - #[rhai_type(skip)] rhai::FLOAT, [INFO] [stderr] 7 + #[rhai_type(skip)] (), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `poet_rhai_codegen` (test "test_custom_type") generated 2 warnings (run `cargo fix --test "test_custom_type"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/poet_rhai_codegen-b0755b7a4029a921) [INFO] [stdout] [INFO] [stdout] running 68 tests [INFO] [stdout] test test::function::function_tests::immutable_receiver_fn ... ok [INFO] [stdout] test test::function::function_tests::private_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_second_arg_fn ... ok [INFO] [stdout] test test::custom_type::custom_type_tests::test_custom_type_struct ... ok [INFO] [stdout] test test::function::function_tests::minimal_fn ... ok [INFO] [stdout] test test::function::function_tests::str_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::mut_ref_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::receiver_fn ... ok [INFO] [stdout] test test::function::function_tests::one_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::two_arg_fn ... ok [INFO] [stdout] test test::custom_type::custom_type_tests::test_custom_type_tuple_struct ... ok [INFO] [stdout] test test::function::function_tests::ptr_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::str_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_arg_fn ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_module_imports_preserved ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_module ... ok [INFO] [stdout] test test::module::generate_tests::empty_module ... ok [INFO] [stdout] test test::function::function_tests::usize_returning_fn ... ok [INFO] [stdout] test test::module::generate_tests::dual_constant_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::mut_arg_usize_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_fn_with_context ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::return_dynamic ... FAILED [INFO] [stdout] test test::function::generate_tests::two_arg_returning_usize_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::mut_ref_pure_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_index_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::function::generate_tests::str_arg_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::one_mut_ref_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_index_getter_fn_with_cfg_attr_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_setter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_single_arg_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_index_setter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_single_arg_global_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_nested_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_skipped_fn_module ... ok [INFO] [stdout] test test::module::module_tests::empty_module ... ok [INFO] [stdout] test test::module::module_tests::one_constant_module ... ok [INFO] [stdout] test test::module::module_tests::one_constant_nested_module ... ok [INFO] [stdout] test test::module::module_tests::one_factory_fn_module ... ok [INFO] [stdout] test test::module::module_tests::one_double_arg_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_type_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_private_constant_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_double_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_str_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_double_rename_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_skipped_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_fn_with_cfg_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_getter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_skipped_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::one_factory_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_skipped_fn_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::two_fn_overload_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::generate_tests::one_index_getter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::deep_tree_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::one_skipped_sub_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] [INFO] [stdout] thread 'test::function::generate_tests::minimal_fn' (41) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a6e08a - poet_rhai_codegen::test::function::generate_tests::minimal_fn::h747415cc85f9ddb0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:301:9 [INFO] [stdout] 23: 0x5626c6a6e0f7 - poet_rhai_codegen::test::function::generate_tests::minimal_fn::{{closure}}::h162c7bd35d457073 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:266:20 [INFO] [stdout] 24: 0x5626c6ad7076 - core::ops::function::FnOnce::call_once::h816896240107df09 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn_impl stdout ---- [INFO] [stdout] actual != expected, diverge at char 35 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn_impl' (45) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a7d013 - poet_rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::hc2130a18112cfb1c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:456:9 [INFO] [stdout] 23: 0x5626c6a7d097 - poet_rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::{{closure}}::hb3b0690609682a94 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:430:31 [INFO] [stdout] 24: 0x5626c6ad6ca6 - core::ops::function::FnOnce::call_once::h62618fe4ffb05cc1 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::mut_arg_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 140 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::mut_arg_usize_fn' (42) 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 PluginFunc 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 is_volatile (& 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 PluginFunc 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 is_volatile (& 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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a775be - poet_rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::h82b1db1efaad0d77 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:541:9 [INFO] [stdout] 23: 0x5626c6a77647 - poet_rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::{{closure}}::h89a2827ed4b83e40 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:502:26 [INFO] [stdout] 24: 0x5626c6ad77d6 - core::ops::function::FnOnce::call_once::hf4e5b336f065b1d7 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_fn_with_context stdout ---- [INFO] [stdout] actual != expected, diverge at char 143 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::one_arg_fn_with_context' (43) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a8023c - poet_rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::hcb278613c8837d32 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:384:9 [INFO] [stdout] 23: 0x5626c6a802c7 - poet_rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::{{closure}}::ha2bbdc6b3ebf775b [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:346:33 [INFO] [stdout] 24: 0x5626c6ad7296 - core::ops::function::FnOnce::call_once::h977a3ab14bd9786d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 143 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn' (44) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a7a5bd - poet_rhai_codegen::test::function::generate_tests::one_arg_usize_fn::h5d8d7325be38700f [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:342:9 [INFO] [stdout] 23: 0x5626c6a7a627 - poet_rhai_codegen::test::function::generate_tests::one_arg_usize_fn::{{closure}}::h3d9506e8cdcef8af [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:305:26 [INFO] [stdout] 24: 0x5626c6ad6c66 - core::ops::function::FnOnce::call_once::h5f41f844c7064de1 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::return_dynamic stdout ---- [INFO] [stdout] actual != expected, diverge at char 145 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::return_dynamic' (46) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a73f54 - poet_rhai_codegen::test::function::generate_tests::return_dynamic::h895acca02764fa3d [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:426:9 [INFO] [stdout] 23: 0x5626c6a73fc7 - poet_rhai_codegen::test::function::generate_tests::return_dynamic::{{closure}}::h9a8528478098d6fb [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:388:24 [INFO] [stdout] 24: 0x5626c6ad6536 - core::ops::function::FnOnce::call_once::h01679dfd423cf440 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::two_arg_returning_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 143 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::two_arg_returning_usize_fn' (48) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a837f5 - poet_rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::h1c1d933069e79f9f [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:498:9 [INFO] [stdout] 23: 0x5626c6a83867 - poet_rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::{{closure}}::ha946f4e549589b64 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:460:36 [INFO] [stdout] 24: 0x5626c6ad6ec6 - core::ops::function::FnOnce::call_once::h7456175afaa72402 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::mut_ref_pure_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 538 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::mut_ref_pure_fn_module' (52) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"foo\") . set_into_module_raw (_m , & foo_token :: param_types () , foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"foo\") . with_params_info (foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & foo_token :: param_types () , foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a032b0 - poet_rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::h7e736f52fef3dcf5 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1321:9 [INFO] [stdout] 23: 0x5626c6a03327 - poet_rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::{{closure}}::h19c2bf3c1d3d573f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1263:32 [INFO] [stdout] 24: 0x5626c6ad6a66 - core::ops::function::FnOnce::call_once::h43cfbdd695007cf5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_setter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 576 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_and_rename_fn_module' (68) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set\") . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; FuncRegistration :: new (\"index$set$\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set\") . with_params_info (set_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; FuncRegistration :: new (\"index$set$\") . with_namespace (FnNamespace :: Global) . with_params_info (set_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a665b0 - poet_rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::hc9e2884a759c5106 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:2125:9 [INFO] [stdout] 23: 0x5626c6a66627 - poet_rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::{{closure}}::haff918a6f4b120ee [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:2064:47 [INFO] [stdout] 24: 0x5626c6ad71d6 - core::ops::function::FnOnce::call_once::h921cf9d82297a352 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 555 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_and_rename_fn_module' (65) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get\") . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get\") . with_params_info (get_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . with_params_info (get_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a6134d - poet_rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::hd5df003fd9b31686 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1997:9 [INFO] [stdout] 23: 0x5626c6a613b7 - poet_rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::{{closure}}::hbfbf46346f543105 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1937:47 [INFO] [stdout] 24: 0x5626c6ad6be6 - core::ops::function::FnOnce::call_once::h5b1f159d6e17fc18 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::str_arg_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 144 [INFO] [stdout] [INFO] [stdout] thread 'test::function::generate_tests::str_arg_fn' (47) 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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6a7ab25 - poet_rhai_codegen::test::function::generate_tests::assert_streams_eq::h142a4eb5bf9a8d46 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:262:9 [INFO] [stdout] 22: 0x5626c6a712ad - poet_rhai_codegen::test::function::generate_tests::str_arg_fn::ha9196db9088aa726 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:583:9 [INFO] [stdout] 23: 0x5626c6a71337 - poet_rhai_codegen::test::function::generate_tests::str_arg_fn::{{closure}}::hadfbd00934d8d920 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:545:20 [INFO] [stdout] 24: 0x5626c6ad6976 - core::ops::function::FnOnce::call_once::h3f14c7d7764bf68b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_mut_ref_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 536 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_mut_ref_fn_module' (70) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . with_params_info (increment_token :: PARAM_NAMES) . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69f7f3f - poet_rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::h251d293d13609e06 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1381:9 [INFO] [stdout] 23: 0x5626c69f7fb7 - poet_rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::{{closure}}::hbc3c2aa929bc6451 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1325:31 [INFO] [stdout] 24: 0x5626c6ad6576 - core::ops::function::FnOnce::call_once::h01c05210feca2844 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_setter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 529 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_setter_and_rename_fn_module' (73) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set_sq\") . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; FuncRegistration :: new (\"set$squared\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set_sq\") . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; FuncRegistration :: new (\"set$squared\") . with_namespace (FnNamespace :: Global) . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a51bff - poet_rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::h4db634201002d45d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1801:9 [INFO] [stdout] 23: 0x5626c6a51c77 - poet_rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::{{closure}}::hf0d4a85fb138abca [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1741:41 [INFO] [stdout] 24: 0x5626c6ad6aa6 - core::ops::function::FnOnce::call_once::h4c9f42ce8a8cd227 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 655 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module' (67) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { # [cfg (hello)] FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { # [cfg (hello)] FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . with_params_info (get_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a6b6a5 - poet_rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::h419d4899104de923 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1933:9 [INFO] [stdout] 23: 0x5626c6a6b717 - poet_rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::{{closure}}::h6371110189f72106 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1867:50 [INFO] [stdout] 24: 0x5626c6ad7626 - core::ops::function::FnOnce::call_once::hccf327cd69644e16 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_setter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 575 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_setter_fn_module' (74) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set$squared\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"set$squared\") . with_namespace (FnNamespace :: Global) . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69f05c5 - poet_rhai_codegen::test::module::generate_tests::one_setter_fn_module::hd862b68b234b2cc4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1737:9 [INFO] [stdout] 23: 0x5626c69f0637 - poet_rhai_codegen::test::module::generate_tests::one_setter_fn_module::{{closure}}::ha25c3aea3738e86d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1679:30 [INFO] [stdout] 24: 0x5626c6ad65f6 - core::ops::function::FnOnce::call_once::h058ad0d72cc340bb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_single_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 521 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_fn_module' (75) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_one_to\") . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_one_to\") . with_params_info (add_one_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a2db9d - poet_rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::h63aeb6d8b65c8462 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:591:9 [INFO] [stdout] 23: 0x5626c6a2dc07 - poet_rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::{{closure}}::h945ec206fcc80653 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:535:34 [INFO] [stdout] 24: 0x5626c6ad67b6 - core::ops::function::FnOnce::call_once::h244b5ae83d3ec830 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_setter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 624 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_fn_module' (69) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"index$set$\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"index$set$\") . with_namespace (FnNamespace :: Global) . with_params_info (set_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & set_by_index_token :: param_types () , set_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a3dc96 - poet_rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::h379a273b9656cc9d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:2060:9 [INFO] [stdout] 23: 0x5626c6a3dd07 - poet_rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::{{closure}}::hd7084db244e38602 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:2001:36 [INFO] [stdout] 24: 0x5626c6ad7166 - core::ops::function::FnOnce::call_once::h8efddd3a72113ad0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_single_arg_global_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 569 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_global_fn_module' (76) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_one_to\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_one_to\") . with_namespace (FnNamespace :: Global) . with_params_info (add_one_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a55dc2 - poet_rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::h7a829d2c9c4b2e69 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:531:9 [INFO] [stdout] 23: 0x5626c6a55e37 - poet_rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::{{closure}}::h37a25c2113fabe7f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:474:41 [INFO] [stdout] 24: 0x5626c6ad65b6 - core::ops::function::FnOnce::call_once::h03d6264e7d624dc8 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_with_comments_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 728 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_with_comments_module' (60) panicked at src/test/mod.rs:34:5: [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 , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; _m . set_custom_type :: < String > (\"World\") ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] 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 } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . with_params_info (get_mystic_number_token :: PARAM_NAMES) . with_comments (& [\"/// This is a doc-comment.\\n/// Another line.\\n/// block doc-comment \\n/// Final line.\" , \"/** doc-comment\\n in multiple lines\\n */\"]) . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; _m . set_custom_type_with_comments :: < String > (\"World\" , & [\"/// We are the world!\"]) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a5aec2 - poet_rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::hf723aba93db70fd7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:470:9 [INFO] [stdout] 23: 0x5626c6a5af37 - poet_rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::{{closure}}::h14de62f5511f825b [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:375:45 [INFO] [stdout] 24: 0x5626c6ad7546 - core::ops::function::FnOnce::call_once::hc020a47a159fb841 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_fn_nested_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 634 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_fn_nested_module' (61) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] 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 , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . with_params_info (increment_token :: PARAM_NAMES) . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] 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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69e7a6f - poet_rhai_codegen::test::module::generate_tests::one_fn_nested_module::h903fdf2728c3af78 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1466:9 [INFO] [stdout] 23: 0x5626c69e7ae7 - poet_rhai_codegen::test::module::generate_tests::one_fn_nested_module::{{closure}}::h084af561fee52f30 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1385:30 [INFO] [stdout] 24: 0x5626c6ad7896 - core::ops::function::FnOnce::call_once::hffaa79e347cc25d4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_constant_type_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 669 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_constant_type_module' (56) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; _m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; _m . set_custom_type :: < Foo > (\"Hello\") ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . with_params_info (get_mystic_number_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; _m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; _m . set_custom_type :: < Foo > (\"Hello\") ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a257f9 - poet_rhai_codegen::test::module::generate_tests::one_constant_type_module::h29249b82b99a3339 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:890:9 [INFO] [stdout] 23: 0x5626c6a25867 - poet_rhai_codegen::test::module::generate_tests::one_constant_type_module::{{closure}}::h366157b84a0592db [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:817:34 [INFO] [stdout] 24: 0x5626c6ad7396 - core::ops::function::FnOnce::call_once::ha9ae422097096c7c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_double_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 535 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_double_arg_fn_module' (57) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_together\") . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_together\") . with_params_info (add_together_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a29c2a - poet_rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::h67c0376d247619e2 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:747:9 [INFO] [stdout] 23: 0x5626c6a29c97 - poet_rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::{{closure}}::h26cbf4d9c662b0db [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:690:34 [INFO] [stdout] 24: 0x5626c6ad73d6 - core::ops::function::FnOnce::call_once::haa76d47754eb8ba0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_str_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 520 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_str_arg_fn_module' (79) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"print_out_to\") . set_into_module_raw (_m , & print_out_to_token :: param_types () , print_out_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"print_out_to\") . with_params_info (print_out_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & print_out_to_token :: param_types () , print_out_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69fec6c - poet_rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::ha1c1d3fe70a37721 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1199:9 [INFO] [stdout] 23: 0x5626c69fecd7 - poet_rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::{{closure}}::h2533818ebb275f82 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1143:31 [INFO] [stdout] 24: 0x5626c6ad6866 - core::ops::function::FnOnce::call_once::h300b9399a0ff1bdf [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_double_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 526 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_double_rename_fn_module' (58) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add\") . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; FuncRegistration :: new (\"+\") . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; FuncRegistration :: new (\"add_together\") . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add\") . with_params_info (add_together_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; FuncRegistration :: new (\"+\") . with_params_info (add_together_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; FuncRegistration :: new (\"add_together\") . with_params_info (add_together_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_together_token :: param_types () , add_together_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a47266 - poet_rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::hd3ec49814eee1b31 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:813:9 [INFO] [stdout] 23: 0x5626c6a472d7 - poet_rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::{{closure}}::h7c509846cca9f0ee [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:751:37 [INFO] [stdout] 24: 0x5626c6ad6fb6 - core::ops::function::FnOnce::call_once::h7f6a9633bea1842b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_fn_with_cfg_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 634 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_fn_with_cfg_module' (62) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] 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 , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { # [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"increment\") . with_params_info (increment_token :: PARAM_NAMES) . set_into_module_raw (_m , & increment_token :: param_types () , increment_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] 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: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a0881f - poet_rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::hca462598639cde48 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1551:9 [INFO] [stdout] 23: 0x5626c6a08897 - poet_rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::{{closure}}::h20e8210e0303a5d3 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1470:32 [INFO] [stdout] 24: 0x5626c6ad66b6 - core::ops::function::FnOnce::call_once::h1256b7ac9bc17b2c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_getter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 573 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_getter_fn_module' (64) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get$square\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get$square\") . with_namespace (FnNamespace :: Global) . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69ebec8 - poet_rhai_codegen::test::module::generate_tests::one_getter_fn_module::h3b215b066f81627a [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1612:9 [INFO] [stdout] 23: 0x5626c69ebf37 - poet_rhai_codegen::test::module::generate_tests::one_getter_fn_module::{{closure}}::h50fdb2f26c751f52 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1555:30 [INFO] [stdout] 24: 0x5626c6ad76e6 - core::ops::function::FnOnce::call_once::hdf8ca272002f1da1 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_getter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 528 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_getter_and_rename_fn_module' (63) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"square\") . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; FuncRegistration :: new (\"get$square\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"square\") . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; FuncRegistration :: new (\"get$square\") . with_namespace (FnNamespace :: Global) . with_params_info (int_foo_token :: PARAM_NAMES) . set_into_module_raw (_m , & int_foo_token :: param_types () , int_foo_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a4d062 - poet_rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::h7dd01280e0cd0998 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1675:9 [INFO] [stdout] 23: 0x5626c6a4d0d7 - poet_rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::{{closure}}::h9fdc6f1ab3bfbb43 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1616:41 [INFO] [stdout] 24: 0x5626c6ad6736 - core::ops::function::FnOnce::call_once::h1b4b6b36fcf0e060 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 525 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_module' (59) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . with_params_info (get_mystic_number_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c69f3f3b - poet_rhai_codegen::test::module::generate_tests::one_factory_fn_module::h5a7aee0c9b8f00b4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:371:9 [INFO] [stdout] 23: 0x5626c69f3fa7 - poet_rhai_codegen::test::module::generate_tests::one_factory_fn_module::{{closure}}::h75ad31bc5a556331 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:316:31 [INFO] [stdout] 24: 0x5626c6ad64f6 - core::ops::function::FnOnce::call_once::h0087484711397fd9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::two_fn_overload_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 570 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::two_fn_overload_module' (81) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_n\") . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; FuncRegistration :: new (\"add_n\") . set_into_module_raw (_m , & add_n_to_token :: param_types () , add_n_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"add_n\") . with_params_info (add_one_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_one_to_token :: param_types () , add_one_to_token () . into ()) ; FuncRegistration :: new (\"add_n\") . with_params_info (add_n_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & add_n_to_token :: param_types () , add_n_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a138f0 - poet_rhai_codegen::test::module::generate_tests::two_fn_overload_module::hf33122182db8995c [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:686:9 [INFO] [stdout] 23: 0x5626c6a13967 - poet_rhai_codegen::test::module::generate_tests::two_fn_overload_module::{{closure}}::h660b114e3c930143 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:595:32 [INFO] [stdout] 24: 0x5626c6ad7416 - core::ops::function::FnOnce::call_once::haccfc42a0384068c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_string_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 521 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_string_arg_fn_module' (80) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"print_out_to\") . set_into_module_raw (_m , & print_out_to_token :: param_types () , print_out_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"print_out_to\") . with_params_info (print_out_to_token :: PARAM_NAMES) . set_into_module_raw (_m , & print_out_to_token :: param_types () , print_out_to_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a31ab3 - poet_rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::h99477a3023ff6ca4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1259:9 [INFO] [stdout] 23: 0x5626c6a31b27 - poet_rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::{{closure}}::hcd4c44db5eb0f1d7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1203:34 [INFO] [stdout] 24: 0x5626c6ad7126 - core::ops::function::FnOnce::call_once::h8add02326c61ab8e [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 603 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_module' (66) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] 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)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"index$get$\") . with_namespace (FnNamespace :: Global) . with_params_info (get_by_index_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_by_index_token :: param_types () , get_by_index_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a38ec3 - poet_rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::h9aecac4f5855d935 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1863:9 [INFO] [stdout] 23: 0x5626c6a38f37 - poet_rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::{{closure}}::hb4f1073a61cdf718 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1805:36 [INFO] [stdout] 24: 0x5626c6ad6676 - core::ops::function::FnOnce::call_once::h1219d95eb0c5a9a1 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_skipped_sub_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 588 [INFO] [stdout] [INFO] [stdout] thread 'test::module::generate_tests::one_skipped_sub_module' (78) panicked at src/test/mod.rs:34:5: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } pub mod inner_secrets { pub const SECRET_NUMBER : INT = 86 ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] right: "# [allow (clippy :: needless_pass_by_value , clippy :: needless_pass_by_ref_mut)] pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } pub mod inner_secrets { pub const SECRET_NUMBER : INT = 86 ; } # [allow (unused_imports)] use super :: * ; # [doc (hidden)] # [inline (always)] pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [doc (hidden)] # [inline (always)] pub fn rhai_generate_into_module (_m : & mut Module , _flatten : bool) { FuncRegistration :: new (\"get_mystic_number\") . with_params_info (get_mystic_number_token :: PARAM_NAMES) . set_into_module_raw (_m , & get_mystic_number_token :: param_types () , get_mystic_number_token () . into ()) ; } # [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 PluginFunc 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 is_volatile (& self) -> bool { false } # [inline (always)] fn has_context (& self) -> bool { false } } }" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x78bdc13dc172 - std::backtrace_rs::backtrace::libunwind::trace::h62f3c6bea0fedab3 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x78bdc13dc172 - std::backtrace_rs::backtrace::trace_unsynchronized::hc41aaca6c0af0bde [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x78bdc13dc172 - std::sys::backtrace::_print_fmt::h33ac2b97007106cc [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x78bdc13dc172 - ::fmt::h4e0a3aeea0f9c085 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x78bdc140d0ef - core::fmt::rt::Argument::fmt::h1edd6a3e00b22f10 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x78bdc140d0ef - core::fmt::write::hecf68a131630c74d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x78bdc138da81 - std::io::default_write_fmt::ha6b238eff7f0ef8a [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x78bdc138da81 - std::io::Write::write_fmt::h9846fe3d2a36c1ea [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x78bdc13a2b42 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x78bdc13aae2a - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x78bdc13aacbc - std::panicking::default_hook::h63f9bf8161c5d325 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5626c6afc40e - as core::ops::function::Fn>::call::hb8126f8384f98101 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x5626c6afc40e - test::test_main_with_exit_callback::{{closure}}::hae96ae0cd2f2ce70 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x78bdc13ab58f - as core::ops::function::Fn>::call::ha703f6686c81d0c6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x78bdc13ab58f - std::panicking::panic_with_hook::h3173740e06bd0752 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x78bdc13ab33a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x78bdc13a2c89 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x78bdc137ee1d - __rustc[de0091b922c53d7e]::rust_begin_unwind [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x78bdc141d790 - core::panicking::panic_fmt::h5138da2ef87be35b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x78bdc141d543 - core::panicking::assert_failed_inner::h1c85740028aaa416 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x5626c6ab15b7 - core::panicking::assert_failed::h1f52c72b1baa1bf2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x5626c6aa5085 - poet_rhai_codegen::test::assert_streams_eq::h778f0b8a8ca13a95 [INFO] [stdout] at /opt/rustwide/workdir/src/test/mod.rs:34:5 [INFO] [stdout] 22: 0x5626c6a0c644 - poet_rhai_codegen::test::module::generate_tests::one_skipped_sub_module::h2b0cbc119f528969 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1105:9 [INFO] [stdout] 23: 0x5626c6a0c6b7 - poet_rhai_codegen::test::module::generate_tests::one_skipped_sub_module::{{closure}}::he292ebe9ce534efb [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1043:32 [INFO] [stdout] 24: 0x5626c6ad7666 - core::ops::function::FnOnce::call_once::hd44d20aca61e80b6 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5626c6afc1eb - core::ops::function::FnOnce::call_once::h8f50ae93d93b62b4 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5626c6afc1eb - test::__rust_begin_short_backtrace::h447963718d05a644 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:663:18 [INFO] [stdout] 27: 0x5626c6b11e25 - test::run_test_in_process::{{closure}}::hf890ba4755ca86c0 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:74 [INFO] [stdout] 28: 0x5626c6b11e25 - as core::ops::function::FnOnce<()>>::call_once::h31e4b2860e583faa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 29: 0x5626c6b11e25 - std::panicking::catch_unwind::do_call::hec7cdbbe797e2cab [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 30: 0x5626c6b11e25 - std::panicking::catch_unwind::h24d3b93458b5ba67 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 31: 0x5626c6b11e25 - std::panic::catch_unwind::h46eeec7cf9c9336c [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5626c6b11e25 - test::run_test_in_process::h290de6e559006104 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:686:27 [INFO] [stdout] 33: 0x5626c6b11e25 - test::run_test::{{closure}}::h26eeb2c5f7e9a995 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:607:43 [INFO] [stdout] 34: 0x5626c6ae8624 - test::run_test::{{closure}}::h85af00882daabeaa [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/test/src/lib.rs:637:41 [INFO] [stdout] 35: 0x5626c6ae8624 - std::sys::backtrace::__rust_begin_short_backtrace::h9d9305dda51fa5f2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 36: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc6aada8b43f0527b [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5626c6aebfca - as core::ops::function::FnOnce<()>>::call_once::ha89fe5505c1206f5 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 38: 0x5626c6aebfca - std::panicking::catch_unwind::do_call::he3e0bef721d99583 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 39: 0x5626c6aebfca - std::panicking::catch_unwind::ha8241964d3d773cd [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 40: 0x5626c6aebfca - std::panic::catch_unwind::ha8554bc7696cae72 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5626c6aebfca - std::thread::Builder::spawn_unchecked_::{{closure}}::he06f1f62b4c90f8d [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5626c6aebfca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha7fd20ecae19b9b9 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x78bdc139d38f - as core::ops::function::FnOnce>::call_once::h43642ed9c40e0ab2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 44: 0x78bdc139d38f - std::sys::thread::unix::Thread::new::thread_start::h38da0f633f090ce2 [INFO] [stdout] at /rustc/f8297e351a40c1439a467bbbb6879088047f50b3/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 45: 0x78bdc1137aa4 - [INFO] [stdout] 46: 0x78bdc11c4a64 - clone [INFO] [stdout] 47: 0x0 - [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. 36 passed; 32 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b1e7b5cf33ab8c8e6e22f77eed1c83d1e843cf7455e9c9be1b4841c7a7070564", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1e7b5cf33ab8c8e6e22f77eed1c83d1e843cf7455e9c9be1b4841c7a7070564", kill_on_drop: false }` [INFO] [stdout] b1e7b5cf33ab8c8e6e22f77eed1c83d1e843cf7455e9c9be1b4841c7a7070564