[INFO] fetching crate rhai_codegen 1.0.0... [INFO] testing rhai_codegen-1.0.0 against try#ecabaf78506b7a4668d42dc20268c086b93f0fad for pr-87041 [INFO] extracting crate rhai_codegen 1.0.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate rhai_codegen 1.0.0 on toolchain ecabaf78506b7a4668d42dc20268c086b93f0fad [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rhai_codegen 1.0.0 [INFO] finished tweaking crates.io crate rhai_codegen 1.0.0 [INFO] tweaked toml for crates.io crate rhai_codegen 1.0.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rhai v1.0.0 [INFO] [stderr] Downloaded rhai_codegen v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04fa63d02daf9cb5ed58d7cb9113aa7079b18d08278ed551a357d82bb2820b02 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "04fa63d02daf9cb5ed58d7cb9113aa7079b18d08278ed551a357d82bb2820b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04fa63d02daf9cb5ed58d7cb9113aa7079b18d08278ed551a357d82bb2820b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04fa63d02daf9cb5ed58d7cb9113aa7079b18d08278ed551a357d82bb2820b02", kill_on_drop: false }` [INFO] [stdout] 04fa63d02daf9cb5ed58d7cb9113aa7079b18d08278ed551a357d82bb2820b02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=forbid" "-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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 58b099f628ce0305224e91aee307379f56396e517804a7dbda3ee070e8d02501 [INFO] running `Command { std: "docker" "start" "-a" "58b099f628ce0305224e91aee307379f56396e517804a7dbda3ee070e8d02501", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling rhai_codegen v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.63s [INFO] running `Command { std: "docker" "inspect" "58b099f628ce0305224e91aee307379f56396e517804a7dbda3ee070e8d02501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58b099f628ce0305224e91aee307379f56396e517804a7dbda3ee070e8d02501", kill_on_drop: false }` [INFO] [stdout] 58b099f628ce0305224e91aee307379f56396e517804a7dbda3ee070e8d02501 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=forbid" "-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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a4972cf3b56cf9b02ce7ee157fb4f5880f0e0d555175f719ed2b6d23ebeb9a3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4a4972cf3b56cf9b02ce7ee157fb4f5880f0e0d555175f719ed2b6d23ebeb9a3", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling trybuild v1.0.42 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling rhai_codegen v1.0.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling smartstring v0.2.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling rhai v1.0.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling rhai_codegen v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `add_float` [INFO] [stdout] --> tests/test_nested.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn add_float(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_int` [INFO] [stdout] --> tests/test_nested.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn add_int(i1: INT, i2: INT) -> INT { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_float` [INFO] [stdout] --> tests/test_nested.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn add_float(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_int` [INFO] [stdout] --> tests/test_nested.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn add_int(i1: INT, i2: INT) -> INT { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_float2` [INFO] [stdout] --> tests/test_modules.rs:285:16 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn add_float2(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar_m` [INFO] [stdout] --> tests/test_modules.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn bar_m(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_float2` [INFO] [stdout] --> tests/test_modules.rs:366:16 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn add_float2(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo_p` [INFO] [stdout] --> tests/test_modules.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | fn foo_p(i1: INT, i2: INT) -> INT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `EmptyModule` should have a snake case name [INFO] [stdout] --> tests/test_modules.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod EmptyModule {} [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `empty_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "4a4972cf3b56cf9b02ce7ee157fb4f5880f0e0d555175f719ed2b6d23ebeb9a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a4972cf3b56cf9b02ce7ee157fb4f5880f0e0d555175f719ed2b6d23ebeb9a3", kill_on_drop: false }` [INFO] [stdout] 4a4972cf3b56cf9b02ce7ee157fb4f5880f0e0d555175f719ed2b6d23ebeb9a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=forbid" "-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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] fda520d5b63801518d1c94fa1d9f00779f851b8daedb13349f668241dcd6b98f [INFO] running `Command { std: "docker" "start" "-a" "fda520d5b63801518d1c94fa1d9f00779f851b8daedb13349f668241dcd6b98f", kill_on_drop: false }` [INFO] [stderr] warning: function is never used: `add_float2` [INFO] [stderr] --> tests/test_modules.rs:285:16 [INFO] [stderr] | [INFO] [stderr] 285 | pub fn add_float2(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `bar_m` [INFO] [stderr] --> tests/test_modules.rs:297:16 [INFO] [stderr] | [INFO] [stderr] 297 | pub fn bar_m(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_float2` [INFO] [stderr] --> tests/test_modules.rs:366:16 [INFO] [stderr] | [INFO] [stderr] 366 | pub fn add_float2(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `foo_p` [INFO] [stderr] --> tests/test_modules.rs:379:12 [INFO] [stderr] | [INFO] [stderr] 379 | fn foo_p(i1: INT, i2: INT) -> INT { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `EmptyModule` should have a snake case name [INFO] [stderr] --> tests/test_modules.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub mod EmptyModule {} [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `empty_module` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_float` [INFO] [stderr] --> tests/test_nested.rs:94:20 [INFO] [stderr] | [INFO] [stderr] 94 | pub fn add_float(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_int` [INFO] [stderr] --> tests/test_nested.rs:98:20 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn add_int(i1: INT, i2: INT) -> INT { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_float` [INFO] [stderr] --> tests/test_nested.rs:106:20 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn add_float(f1: FLOAT, f2: FLOAT) -> FLOAT { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_int` [INFO] [stderr] --> tests/test_nested.rs:110:20 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn add_int(i1: INT, i2: INT) -> INT { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rhai_codegen-748e79db550686f6) [INFO] [stdout] [INFO] [stdout] running 63 tests [INFO] [stdout] test test::function::function_tests::usize_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::two_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::str_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::mut_ref_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::immutable_receiver_fn ... ok [INFO] [stdout] test test::function::function_tests::private_fn ... ok [INFO] [stdout] test test::function::function_tests::minimal_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::ptr_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::str_arg_fn ... ok [INFO] [stdout] test test::module::generate_tests::empty_module ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_type_module ... 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::dual_constant_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::deep_tree_nested_module ... ok [INFO] [stdout] test test::function::generate_tests::mut_arg_usize_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::minimal_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::str_arg_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_fn_with_context ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn_impl ... FAILED [INFO] [stdout] test test::function::generate_tests::two_arg_returning_usize_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::one_private_constant_module ... ok [INFO] [stdout] test test::function::generate_tests::return_dynamic ... FAILED [INFO] [stdout] test test::module::generate_tests::one_private_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::mut_ref_pure_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_double_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_skipped_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_single_arg_global_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_fn_nested_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_fn_with_cfg_module ... FAILED [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_double_arg_fn_module ... ok [INFO] [stdout] test test::module::module_tests::one_factory_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_double_rename_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_private_constant_module ... ok [INFO] [stdout] test test::module::module_tests::one_single_arg_fn_module ... ok [INFO] [stdout] test test::module::module_tests::one_skipped_fn_module ... ok [INFO] [stdout] test test::module::module_tests::one_skipped_nested_module ... ok [INFO] [stdout] test test::module::module_tests::one_skipped_fn_nested_module ... ok [INFO] [stdout] test test::module::generate_tests::one_getter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_index_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_index_getter_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_setter_fn_module ... 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_single_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_factory_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_setter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_skipped_sub_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_str_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_string_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::two_fn_overload_module ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::mut_arg_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 106 [INFO] [stdout] thread 'test::function::generate_tests::mut_arg_usize_fn' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_increment { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut usize\" , \"y: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn (x : & mut usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (increment (x , y))) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890da552 - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::h75ab7a462ccff96b [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:507:9 [INFO] [stdout] 19: 0x5607890d749a - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::{{closure}}::h6c109beb081e1a63 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:471:5 [INFO] [stdout] 20: 0x56078912dbbe - core::ops::function::FnOnce::call_once::h288dfc075caaece0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::minimal_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 107 [INFO] [stdout] thread 'test::function::generate_tests::minimal_fn' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_do_nothing { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (do_nothing ())) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890cbca5 - rhai_codegen::test::function::generate_tests::minimal_fn::h09b6aa2e64252fed [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:298:9 [INFO] [stdout] 19: 0x5607890c9daa - rhai_codegen::test::function::generate_tests::minimal_fn::{{closure}}::h3b2dfe76425ccc13 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:269:5 [INFO] [stdout] 20: 0x56078912e4be - core::ops::function::FnOnce::call_once::ha0755b77b11d882a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::str_arg_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 110 [INFO] [stdout] thread 'test::function::generate_tests::str_arg_fn' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_special_print { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_immutable_string () . unwrap () ; Ok (Dynamic :: from (special_print (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"message: &str\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_immutable_string () . unwrap () ; Ok (Dynamic :: from (special_print (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn (message : & str) -> RhaiResult { Ok (Dynamic :: from (special_print (message))) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890dcda7 - rhai_codegen::test::function::generate_tests::str_arg_fn::h4d8763583becacc3 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:543:9 [INFO] [stdout] 19: 0x5607890da5ba - rhai_codegen::test::function::generate_tests::str_arg_fn::{{closure}}::hc41dc4cca5c849f6 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:511:5 [INFO] [stdout] 20: 0x56078912eb0e - core::ops::function::FnOnce::call_once::hf86cc23c4e908c6f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 109 [INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : 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 } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : 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 } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn (x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (x))) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890ce294 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::ha2c2d08e389c5c9d [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:333:9 [INFO] [stdout] 19: 0x5607890cbcfa - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::{{closure}}::hd57c18e93591203f [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:302:5 [INFO] [stdout] 20: 0x56078912e79e - core::ops::function::FnOnce::call_once::hc0640d063b2ac2f0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_fn_with_context stdout ---- [INFO] [stdout] actual != expected, diverge at char 109 [INFO] [stdout] thread 'test::function::generate_tests::one_arg_fn_with_context' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_do_something { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (context , arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . cast :: < usize > () ; Ok (Dynamic :: from (do_something (context , arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn (context : NativeCallContext , x : usize) -> RhaiResult { Ok (Dynamic :: from (do_something (context , x))) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890d0a27 - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::h2a01b3bd440e5981 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:369:9 [INFO] [stdout] 19: 0x5607890ce2ea - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::{{closure}}::h89686964b9313c36 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:337:5 [INFO] [stdout] 20: 0x56078912d90e - core::ops::function::FnOnce::call_once::h0b921a448566399d [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::one_arg_usize_fn_impl stdout ---- [INFO] [stdout] actual != expected, diverge at char 18 [INFO] [stdout] thread 'test::function::generate_tests::one_arg_usize_fn_impl' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"impl TestStruct { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for TestStruct { # [inline (always)] fn call (& self , context : 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 } }"`, [INFO] [stdout] right: `"impl TestStruct { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < usize > ()] } } impl PluginFunction for TestStruct { # [inline (always)] fn call (& self , context : 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 } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890d4817 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::ha34133ffc9b48ad7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:431:9 [INFO] [stdout] 19: 0x5607890d2cfa - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::{{closure}}::hce577e1dd19a716a [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:409:5 [INFO] [stdout] 20: 0x56078912e14e - core::ops::function::FnOnce::call_once::h83ad2f2d9c5fb83d [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::two_arg_returning_usize_fn stdout ---- [INFO] [stdout] actual != expected, diverge at char 109 [INFO] [stdout] thread 'test::function::generate_tests::two_arg_returning_usize_fn' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_add_together { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : 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 } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: usize\" , \"y: usize\" , \"usize\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < usize > () , TypeId :: of :: < usize > ()] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : 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 } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn (x : usize , y : usize) -> RhaiResult { Ok (Dynamic :: from (add_together (x , y))) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890d7445 - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::hfe77f5f63bc761e0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:467:9 [INFO] [stdout] 19: 0x5607890d489a - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::{{closure}}::h68a60af63a3fa764 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:435:5 [INFO] [stdout] 20: 0x56078912de4e - core::ops::function::FnOnce::call_once::h4cf95c3b69fb4bf1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::function::generate_tests::return_dynamic stdout ---- [INFO] [stdout] actual != expected, diverge at char 111 [INFO] [stdout] thread 'test::function::generate_tests::return_dynamic' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"# [automatically_derived] pub mod rhai_fn_return_dynamic { use super :: * ; pub struct Token () ; impl Token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [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 :: * ; pub struct Token () ; impl Token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"rhai::Dynamic\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for Token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } # [allow (unused)] # [inline (always)] pub fn dynamic_result_fn () -> RhaiResult { Ok (Dynamic :: from (return_dynamic ())) } }"`', src/test/function.rs:265:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x5607890c9c99 - rhai_codegen::test::function::generate_tests::assert_streams_eq::hc87110672694190c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x5607890d2ca9 - rhai_codegen::test::function::generate_tests::return_dynamic::ha437e5dbc2f5bec2 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:405:9 [INFO] [stdout] 19: 0x5607890d0a8a - rhai_codegen::test::function::generate_tests::return_dynamic::{{closure}}::hbbd2fd4dfc233ce7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:373:5 [INFO] [stdout] 20: 0x56078912db3e - core::ops::function::FnOnce::call_once::h26f0796abc409903 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::mut_ref_pure_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 436 [INFO] [stdout] thread 'test::module::generate_tests::mut_ref_pure_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"foo\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] , foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct foo_token () ; impl foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for foo_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"pub mod ref_fn { pub fn foo (x : & mut FLOAT , y : INT) -> FLOAT { * x + y as FLOAT } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"foo\" , FnNamespace :: Internal , FnAccess :: Public , Some (foo_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] , foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct foo_token () ; impl foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"y: INT\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < FLOAT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for foo_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x560789087c0e - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::h9e7d4e71b68a20bd [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1055:9 [INFO] [stdout] 19: 0x56078908407a - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::{{closure}}::h95e33bd699dc0292 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1004:5 [INFO] [stdout] 20: 0x56078912e43e - core::ops::function::FnOnce::call_once::h9faafc0fad76fbce [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_double_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 433 [INFO] [stdout] thread 'test::module::generate_tests::one_double_arg_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_together_token () ; impl add_together_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_together_token () ; impl add_together_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078906e7a2 - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::h4f285d6220742b73 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:568:9 [INFO] [stdout] 19: 0x56078906ae4a - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::{{closure}}::hbfdd1410fa82c034 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:518:5 [INFO] [stdout] 20: 0x56078912d88e - core::ops::function::FnOnce::call_once::h0568d3a995f074ae [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_single_arg_global_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 424 [INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_global_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"pub mod one_global_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Global , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x560789061958 - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::he494efdf2daa9cf5 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:377:9 [INFO] [stdout] 19: 0x56078905e48a - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::{{closure}}::h0bd7ac7295502293 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:327:5 [INFO] [stdout] 20: 0x56078912dcbe - core::ops::function::FnOnce::call_once::h380a15477ff6e472 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_fn_nested_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 450 [INFO] [stdout] thread 'test::module::generate_tests::one_fn_nested_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] 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: `"pub mod one_fn { pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] 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 ()) ; } } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078908ffb7 - rhai_codegen::test::module::generate_tests::one_fn_nested_module::hd87cd43a2a7a9f53 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1188:9 [INFO] [stdout] 19: 0x56078908b4fa - rhai_codegen::test::module::generate_tests::one_fn_nested_module::{{closure}}::h3bd4631222570df7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1115:5 [INFO] [stdout] 20: 0x56078912d94e - core::ops::function::FnOnce::call_once::h0c050ff30a7a5d9c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_getter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 426 [INFO] [stdout] thread 'test::module::generate_tests::one_getter_and_rename_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"square\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"square\" , FnNamespace :: Internal , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"u64\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078909d323 - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::h4c8e6076ed7b9b3d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1391:9 [INFO] [stdout] 19: 0x56078909910a - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::{{closure}}::h48afc5cbff4ed902 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1335:5 [INFO] [stdout] 20: 0x56078912e71e - core::ops::function::FnOnce::call_once::hbb9f9b0063448e42 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_fn_with_cfg_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 487 [INFO] [stdout] thread 'test::module::generate_tests::one_fn_with_cfg_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { # [cfg (not (feature = \"no_float\"))] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { # [cfg (not (feature = \"no_float\"))] self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { # [cfg (not (feature = \"no_float\"))] m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"`, [INFO] [stdout] right: `"pub mod one_fn { # [cfg (not (feature = \"no_float\"))] pub mod it_is { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { if flatten { { # [cfg (not (feature = \"no_float\"))] self :: it_is :: rhai_generate_into_module (m , flatten) ; } } else { { # [cfg (not (feature = \"no_float\"))] m . set_sub_module (\"it_is\" , self :: it_is :: rhai_module_generate ()) ; } } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078909543f - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::he359bfbefe7776be [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1274:9 [INFO] [stdout] 19: 0x56078909000a - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::{{closure}}::h0baf026f89628fe4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1192:5 [INFO] [stdout] 20: 0x56078912e23e - core::ops::function::FnOnce::call_once::h894c122534d1a17d [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_double_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 424 [INFO] [stdout] thread 'test::module::generate_tests::one_double_rename_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"+\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_together_token () ; impl add_together_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn add_together (x : INT , y : INT) -> INT { x + y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"+\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; m . set_fn (\"add_together\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_together_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_together_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_together_token () ; impl add_together_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_together_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890730a9 - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::h521dd7a4cdabc9f7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:629:9 [INFO] [stdout] 19: 0x56078906e7ea - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::{{closure}}::h6c9d1c034071bc85 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:572:5 [INFO] [stdout] 20: 0x56078912e2fe - core::ops::function::FnOnce::call_once::h9478ffd9a6ff4814 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_getter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 428 [INFO] [stdout] thread 'test::module::generate_tests::one_getter_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn int_foo (x : & mut u64) -> u64 { (* x) * (* x) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get$square\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"u64\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < u64 > () . unwrap () ; Ok (Dynamic :: from (int_foo (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890990bf - rhai_codegen::test::module::generate_tests::one_getter_fn_module::ha260a4a575505ac2 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1331:9 [INFO] [stdout] 19: 0x56078909548a - rhai_codegen::test::module::generate_tests::one_getter_fn_module::{{closure}}::h27bba342245810f9 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1278:5 [INFO] [stdout] 20: 0x56078912dcfe - core::ops::function::FnOnce::call_once::h3f1a2d71bb58cfaf [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 453 [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_and_rename_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_by_index_token () ; impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_by_index_token () ; impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890ae33b - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::hf4f6511cef5da7f8 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1629:9 [INFO] [stdout] 19: 0x5607890a9b8a - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::{{closure}}::hc8e023bf2934ef4a [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1572:5 [INFO] [stdout] 20: 0x56078912dc7e - core::ops::function::FnOnce::call_once::h349e1fdb2050e340 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 458 [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_by_index_token () ; impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"pub mod one_index_fn { pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_by_index_token () ; impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890a9b40 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::h71289d46b36674c4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1568:9 [INFO] [stdout] 19: 0x5607890a5a6a - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::{{closure}}::h7b55c5a7c6600fb3 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1514:5 [INFO] [stdout] 20: 0x56078912db7e - core::ops::function::FnOnce::call_once::h27bec4294059c5f1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_setter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 474 [INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_and_rename_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct set_by_index_token () ; impl set_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set\" , FnNamespace :: Internal , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct set_by_index_token () ; impl set_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"item: FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890b7c4a - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::h963ef978dd4b1448 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1750:9 [INFO] [stdout] 19: 0x5607890b2c2a - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::{{closure}}::h6cdadae677d4acee [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1692:5 [INFO] [stdout] 20: 0x56078912e10e - core::ops::function::FnOnce::call_once::h802bde7093de627d [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_setter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 479 [INFO] [stdout] thread 'test::module::generate_tests::one_index_setter_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct set_by_index_token () ; impl set_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"index$set$\" , FnNamespace :: Global , FnAccess :: Public , Some (set_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] , set_by_index_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct set_by_index_token () ; impl set_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"item: FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 3usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > () , TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for set_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890b2bd5 - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::h31c68aed171ce061 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1688:9 [INFO] [stdout] 19: 0x5607890ae38a - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::{{closure}}::h45a100b808d0fcc7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1633:5 [INFO] [stdout] 20: 0x56078912e57e - core::ops::function::FnOnce::call_once::habcae4f30167640c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_mut_ref_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 434 [INFO] [stdout] thread 'test::module::generate_tests::one_mut_ref_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`, [INFO] [stdout] right: `"pub mod ref_fn { pub fn increment (x : & mut FLOAT) { * x += 1.0 as FLOAT ; } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"increment\" , FnNamespace :: Internal , FnAccess :: Public , Some (increment_token :: PARAM_NAMES) , & [TypeId :: of :: < FLOAT > ()] , increment_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct increment_token () ; impl increment_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut FLOAT\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < FLOAT > ()] } } impl PluginFunction for increment_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } let arg0 = & mut args [0usize] . write_lock :: < FLOAT > () . unwrap () ; Ok (Dynamic :: from (increment (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078908b4a6 - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::h452aa63d9056d9a9 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1111:9 [INFO] [stdout] 19: 0x560789087c5a - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::{{closure}}::h1a70d0859b9293d6 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1059:5 [INFO] [stdout] 20: 0x56078912e5fe - core::ops::function::FnOnce::call_once::hadc3dd9f9bbb14b3 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_setter_and_rename_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 427 [INFO] [stdout] thread 'test::module::generate_tests::one_setter_and_rename_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set_sq\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set_sq\" , FnNamespace :: Internal , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"y: u64\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890a5a17 - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::h60d9e9604d541209 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1510:9 [INFO] [stdout] 19: 0x5607890a137a - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::{{closure}}::h988b05efb8359fa7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1453:5 [INFO] [stdout] 20: 0x56078912debe - core::ops::function::FnOnce::call_once::h535031bb56adf38f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_single_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 419 [INFO] [stdout] thread 'test::module::generate_tests::one_single_arg_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn add_one_to (x : INT) -> INT { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_one_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x560789064cfc - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::h651be8eba76c1340 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:430:9 [INFO] [stdout] 19: 0x5607890619aa - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::{{closure}}::h5ab2b1b015336c98 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:381:5 [INFO] [stdout] 20: 0x56078912df8e - core::ops::function::FnOnce::call_once::h60e762d6190c314f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 423 [INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078905e441 - rhai_codegen::test::module::generate_tests::one_factory_fn_module::h2790492f8592a117 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:323:9 [INFO] [stdout] 19: 0x56078905b8ba - rhai_codegen::test::module::generate_tests::one_factory_fn_module::{{closure}}::h0512f08d968f57c7 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:275:5 [INFO] [stdout] 20: 0x56078912ea4e - core::ops::function::FnOnce::call_once::heab6a609c0721fbd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_setter_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 430 [INFO] [stdout] thread 'test::module::generate_tests::one_setter_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`, [INFO] [stdout] right: `"pub mod one_fn { pub fn int_foo (x : & mut u64 , y : u64) { * x = y * y } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"set$squared\" , FnNamespace :: Global , FnAccess :: Public , Some (int_foo_token :: PARAM_NAMES) , & [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] , int_foo_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct int_foo_token () ; impl int_foo_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut u64\" , \"y: u64\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < u64 > () , TypeId :: of :: < u64 > ()] } } impl PluginFunction for int_foo_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into () ; } 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x5607890a1329 - rhai_codegen::test::module::generate_tests::one_setter_fn_module::hc5f72754d39c7f2f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1449:9 [INFO] [stdout] 19: 0x56078909d36a - rhai_codegen::test::module::generate_tests::one_setter_fn_module::{{closure}}::h89ac34c4d6c6ca8e [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1395:5 [INFO] [stdout] 20: 0x56078912e5be - core::ops::function::FnOnce::call_once::hadb04a7072167f8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_skipped_sub_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 486 [INFO] [stdout] thread 'test::module::generate_tests::one_skipped_sub_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , None , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`, [INFO] [stdout] right: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , get_mystic_number_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 0usize] { [] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { Ok (Dynamic :: from (get_mystic_number ())) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078907c850 - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::h07d40a6c61f21a58 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:863:9 [INFO] [stdout] 19: 0x5607890797ba - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::{{closure}}::h939090882e29d9c4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:808:5 [INFO] [stdout] 20: 0x56078912e81e - core::ops::function::FnOnce::call_once::hcb7277fc1bff2d61 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_str_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 418 [INFO] [stdout] thread 'test::module::generate_tests::one_str_arg_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct print_out_to_token () ; impl print_out_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_immutable_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`, [INFO] [stdout] right: `"pub mod str_fn { pub fn print_out_to (x : & str) { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (print_out_to_token :: PARAM_NAMES) , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct print_out_to_token () ; impl print_out_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &str\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_immutable_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x560789080cd6 - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::h3e65c992d43bbafe [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:947:9 [INFO] [stdout] 19: 0x56078907d99a - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::{{closure}}::hcd9194e28f788399 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:898:5 [INFO] [stdout] 20: 0x56078912e1fe - core::ops::function::FnOnce::call_once::h86fcdd9e79ed84c2 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_string_arg_fn_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 419 [INFO] [stdout] thread 'test::module::generate_tests::one_string_arg_fn_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct print_out_to_token () ; impl print_out_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`, [INFO] [stdout] right: `"pub mod str_fn { pub fn print_out_to (x : String) { x + 1 } # [allow (unused_imports)] use super :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"print_out_to\" , FnNamespace :: Internal , FnAccess :: Public , Some (print_out_to_token :: PARAM_NAMES) , & [TypeId :: of :: < ImmutableString > ()] , print_out_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct print_out_to_token () ; impl print_out_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: String\" , \"()\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < ImmutableString > ()] } } impl PluginFunction for print_out_to_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { let arg0 = mem :: take (args [0usize]) . as_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x560789084030 - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::h956ba7a995c1bd67 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1000:9 [INFO] [stdout] 19: 0x560789080d2a - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::{{closure}}::hc8817881a0a6e5d6 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:951:5 [INFO] [stdout] 20: 0x56078912e47e - core::ops::function::FnOnce::call_once::h9fec023158c940aa [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::two_fn_overload_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 468 [INFO] [stdout] thread 'test::module::generate_tests::two_fn_overload_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , None , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_n_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } # [allow (non_camel_case_types)] pub struct add_n_to_token () ; impl add_n_to_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_n_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`, [INFO] [stdout] right: `"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 :: * ; pub fn rhai_module_generate () -> Module { let mut m = Module :: new () ; rhai_generate_into_module (& mut m , false) ; m . build_index () ; m } # [allow (unused_mut)] pub fn rhai_generate_into_module (m : & mut Module , flatten : bool) { m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_one_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > ()] , add_one_to_token () . into ()) ; m . set_fn (\"add_n\" , FnNamespace :: Internal , FnAccess :: Public , Some (add_n_to_token :: PARAM_NAMES) , & [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] , add_n_to_token () . into ()) ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct add_one_to_token () ; impl add_one_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < INT > ()] } } impl PluginFunction for add_one_to_token { # [inline (always)] fn call (& self , context : 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 } } # [allow (non_camel_case_types)] pub struct add_n_to_token () ; impl add_n_to_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: INT\" , \"y: INT\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < INT > () , TypeId :: of :: < INT > ()] } } impl PluginFunction for add_n_to_token { # [inline (always)] fn call (& self , context : 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 } } }"`', src/test/module.rs:243:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f231b65bf20 - std::backtrace_rs::backtrace::libunwind::trace::h706b838f5bbd876b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x7f231b65bf20 - std::backtrace_rs::backtrace::trace_unsynchronized::hc15f29ae7822b7b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f231b65bf20 - std::sys_common::backtrace::_print_fmt::h7c580c971f91926c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x7f231b65bf20 - ::fmt::h2a772198c4032452 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x7f231b6c9d0c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x7f231b64d7b5 - std::io::Write::write_fmt::h583dff5009d01a9f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/io/mod.rs:1663:15 [INFO] [stdout] 6: 0x7f231b65fc3b - std::sys_common::backtrace::_print::h5b3c171e6f864ae4 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x7f231b65fc3b - std::sys_common::backtrace::print::h93b9e9ed2a98e611 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x7f231b65fc3b - std::panicking::default_hook::{{closure}}::hd8da92bb68d520c5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x7f231b65f74c - std::panicking::default_hook::hdbc8b2951c5afbab [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x7f231b660469 - std::panicking::rust_panic_with_hook::h8a4c841655926f4e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:626:17 [INFO] [stdout] 11: 0x7f231b65ff27 - std::panicking::begin_panic_handler::{{closure}}::h471b6bc74904b7b0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x7f231b65c41c - std::sys_common::backtrace::__rust_end_short_backtrace::h309f5c707f29932f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x7f231b65fe89 - rust_begin_unwind [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x7f231b62ae91 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x7f231b6c66f8 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x5607890f03fa - core::panicking::assert_failed::h3f00516689f4a684 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x56078905a869 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h53fbd69b9efdf381 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:243:9 [INFO] [stdout] 18: 0x56078906adf9 - rhai_codegen::test::module::generate_tests::two_fn_overload_module::h037875db0f68843f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:514:9 [INFO] [stdout] 19: 0x560789064d4a - rhai_codegen::test::module::generate_tests::two_fn_overload_module::{{closure}}::heae7000f73152c57 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:434:5 [INFO] [stdout] 20: 0x56078912e03e - core::ops::function::FnOnce::call_once::h6d6a0cc82391ff0d [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f231b985fa3 - core::ops::function::FnOnce::call_once::h99a97b0ff983bd25 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f231b985fa3 - test::__rust_begin_short_backtrace::h8fe0d26ed1584e50 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:577:5 [INFO] [stdout] 23: 0x7f231b984a30 - as core::ops::function::FnOnce>::call_once::he6b90e352f394d8f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 24: 0x7f231b984a30 - as core::ops::function::FnOnce<()>>::call_once::h1c05475e029700b8 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 25: 0x7f231b984a30 - std::panicking::try::do_call::he6de943476ae628a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 26: 0x7f231b984a30 - std::panicking::try::ha21937b8feb06f89 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 27: 0x7f231b984a30 - std::panic::catch_unwind::ha79830b3325c9fa6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 28: 0x7f231b984a30 - test::run_test_in_process::h1ab180b83ee2d5b5 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:600:18 [INFO] [stdout] 29: 0x7f231b984a30 - test::run_test::run_test_inner::{{closure}}::h8258ffe088f187a1 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:492:39 [INFO] [stdout] 30: 0x7f231b95b452 - test::run_test::run_test_inner::{{closure}}::hc697b214abd32bc6 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/test/src/lib.rs:519:37 [INFO] [stdout] 31: 0x7f231b95b452 - std::sys_common::backtrace::__rust_begin_short_backtrace::h64de0d3f894854a9 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 32: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h1fd98fc86e533ece [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 33: 0x7f231b95fc98 - as core::ops::function::FnOnce<()>>::call_once::h4e2a7abf702e4cfd [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:347:9 [INFO] [stdout] 34: 0x7f231b95fc98 - std::panicking::try::do_call::h4496392321a3c8c0 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:401:40 [INFO] [stdout] 35: 0x7f231b95fc98 - std::panicking::try::hf1e14258e04e8e9a [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panicking.rs:365:19 [INFO] [stdout] 36: 0x7f231b95fc98 - std::panic::catch_unwind::hb72c3777cd55642f [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/panic.rs:434:14 [INFO] [stdout] 37: 0x7f231b95fc98 - std::thread::Builder::spawn_unchecked::{{closure}}::h2d7915a5910e148e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 38: 0x7f231b95fc98 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h83fd2f1ef5be797c [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::ha8b1d5a0092467fc [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x7f231b66ca17 - as core::ops::function::FnOnce>::call_once::h4b9f24ec4e8a879e [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 41: 0x7f231b66ca17 - std::sys::unix::thread::Thread::new::thread_start::h2a0e98fbc4ab4c32 [INFO] [stdout] at /rustc/ecabaf78506b7a4668d42dc20268c086b93f0fad/library/std/src/sys/unix/thread.rs:72:17 [INFO] [stdout] 42: 0x7f231b379609 - start_thread [INFO] [stdout] 43: 0x7f231b4b7293 - clone [INFO] [stdout] 44: 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_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_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_setter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_index_setter_fn_module [INFO] [stdout] test::module::generate_tests::one_mut_ref_fn_module [INFO] [stdout] test::module::generate_tests::one_setter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_setter_fn_module [INFO] [stdout] test::module::generate_tests::one_single_arg_fn_module [INFO] [stdout] test::module::generate_tests::one_single_arg_global_fn_module [INFO] [stdout] test::module::generate_tests::one_skipped_sub_module [INFO] [stdout] test::module::generate_tests::one_str_arg_fn_module [INFO] [stdout] test::module::generate_tests::one_string_arg_fn_module [INFO] [stdout] test::module::generate_tests::two_fn_overload_module [INFO] [stdout] [INFO] [stdout] test result: FAILED. 34 passed; 29 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fda520d5b63801518d1c94fa1d9f00779f851b8daedb13349f668241dcd6b98f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fda520d5b63801518d1c94fa1d9f00779f851b8daedb13349f668241dcd6b98f", kill_on_drop: false }` [INFO] [stdout] fda520d5b63801518d1c94fa1d9f00779f851b8daedb13349f668241dcd6b98f