[INFO] fetching crate rhai_codegen 1.4.0... [INFO] testing rhai_codegen-1.4.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate rhai_codegen 1.4.0 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate rhai_codegen 1.4.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rhai_codegen 1.4.0 [INFO] finished tweaking crates.io crate rhai_codegen 1.4.0 [INFO] tweaked toml for crates.io crate rhai_codegen 1.4.0 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 353952c980ffb28a20be96e98404cfd58a2dbd45d2c55c7f35199a8e1b960200 [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" "353952c980ffb28a20be96e98404cfd58a2dbd45d2c55c7f35199a8e1b960200", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "353952c980ffb28a20be96e98404cfd58a2dbd45d2c55c7f35199a8e1b960200", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "353952c980ffb28a20be96e98404cfd58a2dbd45d2c55c7f35199a8e1b960200", kill_on_drop: false }` [INFO] [stdout] 353952c980ffb28a20be96e98404cfd58a2dbd45d2c55c7f35199a8e1b960200 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] 30276822d97d8c4353da948ffaa548e6ff2995eb9025f1d67c6787b8f495c863 [INFO] running `Command { std: "docker" "start" "-a" "30276822d97d8c4353da948ffaa548e6ff2995eb9025f1d67c6787b8f495c863", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling rhai_codegen v1.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.57s [INFO] running `Command { std: "docker" "inspect" "30276822d97d8c4353da948ffaa548e6ff2995eb9025f1d67c6787b8f495c863", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30276822d97d8c4353da948ffaa548e6ff2995eb9025f1d67c6787b8f495c863", kill_on_drop: false }` [INFO] [stdout] 30276822d97d8c4353da948ffaa548e6ff2995eb9025f1d67c6787b8f495c863 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--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] fc2c894f6749aace755527aa933d4d21a51d820042166cade4cfcb29c14d5324 [INFO] running `Command { std: "docker" "start" "-a" "fc2c894f6749aace755527aa933d4d21a51d820042166cade4cfcb29c14d5324", kill_on_drop: false }` [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling rhai_codegen v1.4.0 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling rhai v1.6.1 [INFO] [stderr] Compiling trybuild v1.0.59 [INFO] [stderr] Compiling rhai_codegen v1.4.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: field is never read: `os_code` [INFO] [stdout] --> tests/test_functions.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | os_code: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> tests/test_functions.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_ok` [INFO] [stdout] --> tests/test_functions.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | is_ok: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> tests/test_functions.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 89 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `os_code` [INFO] [stdout] --> tests/test_modules.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | os_code: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> tests/test_modules.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_ok` [INFO] [stdout] --> tests/test_modules.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | is_ok: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> tests/test_modules.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 37s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rhai_codegen-f8b848bd23a08191) [INFO] [stderr] Executable tests/test_functions.rs (/opt/rustwide/target/debug/deps/test_functions-67bbeca8f758ac54) [INFO] [stderr] Executable tests/test_modules.rs (/opt/rustwide/target/debug/deps/test_modules-dc239f4d1ef65f44) [INFO] [stderr] Executable tests/test_nested.rs (/opt/rustwide/target/debug/deps/test_nested-15d9973b28ecc22e) [INFO] [stderr] Executable tests/ui_tests.rs (/opt/rustwide/target/debug/deps/ui_tests-56f28bd195518629) [INFO] running `Command { std: "docker" "inspect" "fc2c894f6749aace755527aa933d4d21a51d820042166cade4cfcb29c14d5324", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2c894f6749aace755527aa933d4d21a51d820042166cade4cfcb29c14d5324", kill_on_drop: false }` [INFO] [stdout] fc2c894f6749aace755527aa933d4d21a51d820042166cade4cfcb29c14d5324 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] 37f0b14d9f685bc106726e1b1f9cb7057f6e72570b0263e5321e03945180c42b [INFO] running `Command { std: "docker" "start" "-a" "37f0b14d9f685bc106726e1b1f9cb7057f6e72570b0263e5321e03945180c42b", kill_on_drop: false }` [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: field is never read: `os_code` [INFO] [stderr] --> tests/test_modules.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | os_code: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> tests/test_modules.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `is_ok` [INFO] [stderr] --> tests/test_modules.rs:110:9 [INFO] [stderr] | [INFO] [stderr] 110 | is_ok: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> tests/test_modules.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [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] 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: field is never read: `os_code` [INFO] [stderr] --> tests/test_functions.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | os_code: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> tests/test_functions.rs:89:14 [INFO] [stderr] | [INFO] [stderr] 89 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `is_ok` [INFO] [stderr] --> tests/test_functions.rs:93:9 [INFO] [stderr] | [INFO] [stderr] 93 | is_ok: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `StatusMessage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> tests/test_functions.rs:89:14 [INFO] [stderr] | [INFO] [stderr] 89 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rhai_codegen` (test "test_nested") generated 4 warnings [INFO] [stderr] warning: `rhai_codegen` (test "test_modules") generated 7 warnings [INFO] [stderr] warning: `rhai_codegen` (test "test_functions") generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rhai_codegen-f8b848bd23a08191) [INFO] [stdout] [INFO] [stdout] running 66 tests [INFO] [stdout] test test::function::function_tests::immutable_receiver_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::str_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::two_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::minimal_fn ... ok [INFO] [stdout] test test::function::function_tests::mut_ref_second_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::ref_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::receiver_fn ... ok [INFO] [stdout] test test::function::function_tests::ptr_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::private_fn ... ok [INFO] [stdout] test test::module::generate_tests::empty_module ... ok [INFO] [stdout] test test::function::function_tests::one_arg_fn ... ok [INFO] [stdout] test test::function::function_tests::usize_returning_fn ... ok [INFO] [stdout] test test::function::function_tests::str_second_arg_fn ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_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::dual_constant_nested_module ... ok [INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn_impl ... FAILED [INFO] [stdout] test test::function::generate_tests::minimal_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::deep_tree_nested_module ... ok [INFO] [stdout] test test::function::generate_tests::str_arg_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::two_arg_returning_usize_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::one_fn_with_cfg_module ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_fn_with_context ... FAILED [INFO] [stdout] test test::function::generate_tests::mut_arg_usize_fn ... FAILED [INFO] [stdout] test test::function::generate_tests::one_arg_usize_fn ... FAILED [INFO] [stdout] test test::module::generate_tests::one_double_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_private_constant_module ... ok [INFO] [stdout] test test::module::generate_tests::one_private_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_constant_type_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_factory_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_factory_fn_with_comments_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_skipped_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_double_rename_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_fn_nested_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_getter_fn_module ... FAILED [INFO] [stdout] test test::function::generate_tests::return_dynamic ... FAILED [INFO] [stdout] test test::module::module_tests::empty_module ... ok [INFO] [stdout] test test::module::generate_tests::one_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_constant_module ... ok [INFO] [stdout] test test::module::module_tests::one_double_arg_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_index_getter_and_rename_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_factory_fn_with_custom_type_module ... ok [INFO] [stdout] test test::module::module_tests::one_private_constant_module ... ok [INFO] [stdout] test test::module::module_tests::one_constant_nested_module ... ok [INFO] [stdout] test test::module::module_tests::one_single_arg_fn_module ... ok [INFO] [stdout] test test::module::generate_tests::one_index_getter_fn_module ... FAILED [INFO] [stdout] test test::module::module_tests::one_factory_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_index_getter_fn_with_cfg_attr_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::mut_ref_pure_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_mut_ref_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_single_arg_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_setter_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_single_arg_global_fn_module ... FAILED [INFO] [stdout] test test::module::generate_tests::one_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::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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c45796 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::hb726609e3e8365a1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:431:9 [INFO] [stdout] 19: 0x563b22c43c0a - rhai_codegen::test::function::generate_tests::one_arg_usize_fn_impl::{{closure}}::h651f1162d605200a [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:409:5 [INFO] [stdout] 20: 0x563b22c990de - core::ops::function::FnOnce::call_once::h2ead895b85bbe07f [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c3ca88 - rhai_codegen::test::function::generate_tests::minimal_fn::hd9ffda5114f450a8 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:298:9 [INFO] [stdout] 19: 0x563b22c3ab3a - rhai_codegen::test::function::generate_tests::minimal_fn::{{closure}}::ha594cfae0e7bcab9 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:269:5 [INFO] [stdout] 20: 0x563b22c98fde - core::ops::function::FnOnce::call_once::h20e82c0bc80962b5 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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]) . into_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]) . into_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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c4df0b - rhai_codegen::test::function::generate_tests::str_arg_fn::h559a34c842d1008f [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:543:9 [INFO] [stdout] 19: 0x563b22c4b6ba - rhai_codegen::test::function::generate_tests::str_arg_fn::{{closure}}::hf773ee376053c119 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:511:5 [INFO] [stdout] 20: 0x563b22c9982e - core::ops::function::FnOnce::call_once::h9a9b1d4786584e82 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c48410 - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::h68f972bb75cfa5d0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:467:9 [INFO] [stdout] 19: 0x563b22c457fa - rhai_codegen::test::function::generate_tests::two_arg_returning_usize_fn::{{closure}}::hd60380c5dc08942f [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:435:5 [INFO] [stdout] 20: 0x563b22c99cee - core::ops::function::FnOnce::call_once::he4dba7ef7ced5690 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c00356 - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::hea5852e7961ae6e5 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1451:9 [INFO] [stdout] 19: 0x563b22bfad9a - rhai_codegen::test::module::generate_tests::one_fn_with_cfg_module::{{closure}}::h610a31c97e063ad9 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1369:5 [INFO] [stdout] 20: 0x563b22c9990e - core::ops::function::FnOnce::call_once::haaac78c9880a744e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c418c8 - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::h665610e523727ce0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:369:9 [INFO] [stdout] 19: 0x563b22c3f12a - rhai_codegen::test::function::generate_tests::one_arg_fn_with_context::{{closure}}::h19d2fb50f0a69dc3 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:337:5 [INFO] [stdout] 20: 0x563b22c99d6e - core::ops::function::FnOnce::call_once::he79cb811c2af2ba6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - clone [INFO] [stdout] 44: 0x0 - [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 Err (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 Err (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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c4b64b - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::h2f51b1c6793f9654 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:507:9 [INFO] [stdout] 19: 0x563b22c4846a - rhai_codegen::test::function::generate_tests::mut_arg_usize_fn::{{closure}}::h0d53a66a6ce9191e [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:471:5 [INFO] [stdout] 20: 0x563b22c9932e - core::ops::function::FnOnce::call_once::h5df35dccb78dd97f [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c3f0d3 - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::h6baec6ca3594dca2 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:333:9 [INFO] [stdout] 19: 0x563b22c3cada - rhai_codegen::test::function::generate_tests::one_arg_usize_fn::{{closure}}::hceaa5d3bd6b35b8d [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:302:5 [INFO] [stdout] 20: 0x563b22c99cae - core::ops::function::FnOnce::call_once::he2eaa659e73f0171 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bd621f - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::h86e318658780b9e0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:710:9 [INFO] [stdout] 19: 0x563b22bd284a - rhai_codegen::test::module::generate_tests::one_double_arg_fn_module::{{closure}}::hddcbd05a7222e2df [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:660:5 [INFO] [stdout] 20: 0x563b22c9925e - core::ops::function::FnOnce::call_once::h502dfb728318c58d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_constant_type_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 567 [INFO] [stdout] thread 'test::module::generate_tests::one_constant_type_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_constant { # [derive (Debug , Clone)] pub struct Foo (pub INT) ; pub type Hello = Foo ; pub const MYSTIC_NUMBER : Foo = Foo (42) ; pub fn get_mystic_number (x : & mut Hello) -> INT { x . 0 } # [allow (unused_imports)] use super :: * ; 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 , & [TypeId :: of :: < Hello > ()] , get_mystic_number_token () . into ()) ; m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; m . set_custom_type :: < Foo > (\"Hello\") ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < Hello > ()] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return Err (EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into ()) ; } let arg0 = & mut args [0usize] . write_lock :: < Hello > () . unwrap () ; Ok (Dynamic :: from (get_mystic_number (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`, [INFO] [stdout] right: `"pub mod one_constant { # [derive (Debug , Clone)] pub struct Foo (pub INT) ; pub type Hello = Foo ; pub const MYSTIC_NUMBER : Foo = Foo (42) ; pub fn get_mystic_number (x : & mut Hello) -> INT { x . 0 } # [allow (unused_imports)] use super :: * ; 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) , & [TypeId :: of :: < Hello > ()] , get_mystic_number_token () . into ()) ; m . set_var (\"MYSTIC_NUMBER\" , MYSTIC_NUMBER) ; m . set_custom_type :: < Foo > (\"Hello\") ; if flatten { } else { } } # [allow (non_camel_case_types)] pub struct get_mystic_number_token () ; impl get_mystic_number_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut Hello\" , \"INT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 1usize] { [TypeId :: of :: < Hello > ()] } } impl PluginFunction for get_mystic_number_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return Err (EvalAltResult :: ErrorAssignmentToConstant (\"x\" . to_string () , Position :: NONE) . into ()) ; } let arg0 = & mut args [0usize] . write_lock :: < Hello > () . unwrap () ; Ok (Dynamic :: from (get_mystic_number (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { true } } }"`', src/test/module.rs:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bdf25f - rhai_codegen::test::module::generate_tests::one_constant_type_module::hf8e545330d098a9e [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:844:9 [INFO] [stdout] 19: 0x563b22bdac2a - rhai_codegen::test::module::generate_tests::one_constant_type_module::{{closure}}::h0b8139b8854622eb [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:775:5 [INFO] [stdout] 20: 0x563b22c9915e - core::ops::function::FnOnce::call_once::h35a5ba9e0722f45f [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bc2489 - rhai_codegen::test::module::generate_tests::one_factory_fn_module::he4b5f6d71a1d4a52 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:392:9 [INFO] [stdout] 19: 0x563b22bbf89a - rhai_codegen::test::module::generate_tests::one_factory_fn_module::{{closure}}::h69dd0bce17887b92 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:344:5 [INFO] [stdout] 20: 0x563b22c99a4e - core::ops::function::FnOnce::call_once::hbff9182fe3b31e8a [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c10e85 - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::h7cd0a163c7fa9b52 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1687:9 [INFO] [stdout] 19: 0x563b22c0c69a - rhai_codegen::test::module::generate_tests::one_setter_and_rename_fn_module::{{closure}}::hed05c13a6fd296b5 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1630:5 [INFO] [stdout] 20: 0x563b22c998ce - core::ops::function::FnOnce::call_once::ha61192c42785edc0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_factory_fn_with_comments_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 558 [INFO] [stdout] thread 'test::module::generate_tests::one_factory_fn_with_comments_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_fn { # [doc = r\" This is a doc-comment.\"] # [doc = r\" Another line.\"] # [doc = r\" block doc-comment \"] # [doc = r\" Final line.\"] # [doc = r\" doc-comment\n in multiple lines\n \"] pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; 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 { # [doc = r\" This is a doc-comment.\"] # [doc = r\" Another line.\"] # [doc = r\" block doc-comment \"] # [doc = r\" Final line.\"] # [doc = r\" doc-comment\n in multiple lines\n \"] pub fn get_mystic_number () -> INT { 42 } # [allow (unused_imports)] use super :: * ; 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_with_comments (\"get_mystic_number\" , FnNamespace :: Internal , FnAccess :: Public , Some (get_mystic_number_token :: PARAM_NAMES) , & [] , & [\"/// This is a doc-comment.\" , \"/// Another line.\" , \"/// block doc-comment \" , \"/// Final line.\" , \"/** doc-comment\\n in multiple lines\\n */\"] , 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bc5c56 - rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::hb3611e11f177a796 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:465:9 [INFO] [stdout] 19: 0x563b22bc24da - rhai_codegen::test::module::generate_tests::one_factory_fn_with_comments_module::{{closure}}::hbe6505274e24ba56 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:396:5 [INFO] [stdout] 20: 0x563b22c98f9e - core::ops::function::FnOnce::call_once::h20b62a1b38f99259 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bdabce - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::h8a355a23e06ffa25 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:771:9 [INFO] [stdout] 19: 0x563b22bd627a - rhai_codegen::test::module::generate_tests::one_double_rename_fn_module::{{closure}}::hc55b9ec7a3eb0684 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:714:5 [INFO] [stdout] 20: 0x563b22c9911e - core::ops::function::FnOnce::call_once::h2f68e6262501557d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bfad4a - rhai_codegen::test::module::generate_tests::one_fn_nested_module::hcb03ef6612501001 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1365:9 [INFO] [stdout] 19: 0x563b22bf612a - rhai_codegen::test::module::generate_tests::one_fn_nested_module::{{closure}}::h5f6ab7e5d3c2f11d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1292:5 [INFO] [stdout] 20: 0x563b22c991de - core::ops::function::FnOnce::call_once::h46204a4830640364 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c0412a - rhai_codegen::test::module::generate_tests::one_getter_fn_module::h1235d47b45c686ee [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1508:9 [INFO] [stdout] 19: 0x563b22c003aa - rhai_codegen::test::module::generate_tests::one_getter_fn_module::{{closure}}::he9527267ccfbef4c [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1455:5 [INFO] [stdout] 20: 0x563b22c9909e - core::ops::function::FnOnce::call_once::h2cc8dc889aac8e67 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22c3aa22 - rhai_codegen::test::function::generate_tests::assert_streams_eq::h6b3a25d7f0e942d1 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:265:9 [INFO] [stdout] 18: 0x563b22c43bb8 - rhai_codegen::test::function::generate_tests::return_dynamic::h9089756c109e6c86 [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:405:9 [INFO] [stdout] 19: 0x563b22c4193a - rhai_codegen::test::function::generate_tests::return_dynamic::{{closure}}::hbf6dd314296d153c [INFO] [stdout] at /opt/rustwide/workdir/src/test/function.rs:373:5 [INFO] [stdout] 20: 0x563b22c98dae - core::ops::function::FnOnce::call_once::h09ded716391cd21c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c084e7 - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::h0dd964403d4f0f13 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1568:9 [INFO] [stdout] 19: 0x563b22c0417a - rhai_codegen::test::module::generate_tests::one_getter_and_rename_fn_module::{{closure}}::heaab1790eb6e817b [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1512:5 [INFO] [stdout] 20: 0x563b22c9951e - core::ops::function::FnOnce::call_once::h7bd416efa7cf8ac5 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c1e75f - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::hb25f17a10867a4b4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1872:9 [INFO] [stdout] 19: 0x563b22c19e5a - rhai_codegen::test::module::generate_tests::one_index_getter_and_rename_fn_module::{{closure}}::ha5e927906af7f95a [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1815:5 [INFO] [stdout] 20: 0x563b22c99bfe - core::ops::function::FnOnce::call_once::hd2bbaa1e6739caa0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c150f8 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::h5b6c8501ee163315 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1745:9 [INFO] [stdout] 19: 0x563b22c10eda - rhai_codegen::test::module::generate_tests::one_index_getter_fn_module::{{closure}}::h2e840080c111bf2d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1691:5 [INFO] [stdout] 20: 0x563b22c992ee - core::ops::function::FnOnce::call_once::h55dd2df0aa3948cd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module stdout ---- [INFO] [stdout] actual != expected, diverge at char 510 [INFO] [stdout] thread 'test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `"pub mod one_index_fn { # [cfg (hello)] # [some_other_attr] pub fn get_by_index (x : & mut MyCollection , i : u64) -> FLOAT { x . get (i) } # [allow (unused_imports)] use super :: * ; 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) { # [cfg (hello)] m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , None , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [cfg (hello)] # [allow (non_camel_case_types)] pub struct get_by_index_token () ; # [cfg (hello)] impl get_by_index_token { # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } # [cfg (hello)] impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return Err (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 { # [cfg (hello)] # [some_other_attr] 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) { # [cfg (hello)] m . set_fn (\"index$get$\" , FnNamespace :: Global , FnAccess :: Public , Some (get_by_index_token :: PARAM_NAMES) , & [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] , get_by_index_token () . into ()) ; if flatten { } else { } } # [cfg (hello)] # [allow (non_camel_case_types)] pub struct get_by_index_token () ; # [cfg (hello)] impl get_by_index_token { pub const PARAM_NAMES : & 'static [& 'static str] = & [\"x: &mut MyCollection\" , \"i: u64\" , \"FLOAT\"] ; # [inline (always)] pub fn param_types () -> [TypeId ; 2usize] { [TypeId :: of :: < MyCollection > () , TypeId :: of :: < u64 > ()] } } # [cfg (hello)] impl PluginFunction for get_by_index_token { # [inline (always)] fn call (& self , context : NativeCallContext , args : & mut [& mut Dynamic]) -> RhaiResult { if args [0usize] . is_read_only () { return Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c19e06 - rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::hb5728a0b09ee3567 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1811:9 [INFO] [stdout] 19: 0x563b22c1514a - rhai_codegen::test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module::{{closure}}::hc3531ad45cee10c0 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1749:5 [INFO] [stdout] 20: 0x563b22c98e2e - core::ops::function::FnOnce::call_once::h0d842c4e6dfc0cf3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c28327 - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::h6383d04ccdfdc21d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1993:9 [INFO] [stdout] 19: 0x563b22c231aa - rhai_codegen::test::module::generate_tests::one_index_setter_and_rename_fn_module::{{closure}}::h6a40b61bae974fe8 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1935:5 [INFO] [stdout] 20: 0x563b22c99c6e - core::ops::function::FnOnce::call_once::he29a7a03c61ef66a [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c23156 - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::h1919fb5e29b433d4 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1931:9 [INFO] [stdout] 19: 0x563b22c1e7ba - rhai_codegen::test::module::generate_tests::one_index_setter_fn_module::{{closure}}::hbe14325808293222 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1876:5 [INFO] [stdout] 20: 0x563b22c9970e - core::ops::function::FnOnce::call_once::h91e6a39df5be4fe5 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bf26ee - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::hb77773e24a8ac9bb [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1232:9 [INFO] [stdout] 19: 0x563b22beeada - rhai_codegen::test::module::generate_tests::mut_ref_pure_fn_module::{{closure}}::h63b3347d4a44bf84 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1181:5 [INFO] [stdout] 20: 0x563b22c99bbe - core::ops::function::FnOnce::call_once::hd2a4d226a3001996 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bf60cf - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::hc124e2fa2fbc2069 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1288:9 [INFO] [stdout] 19: 0x563b22bf274a - rhai_codegen::test::module::generate_tests::one_mut_ref_fn_module::{{closure}}::hb4151c98274e7793 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1236:5 [INFO] [stdout] 20: 0x563b22c99f1e - core::ops::function::FnOnce::call_once::hf2180f02f3c36ade [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bcc613 - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::hd4e9276d58393eff [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:572:9 [INFO] [stdout] 19: 0x563b22bc924a - rhai_codegen::test::module::generate_tests::one_single_arg_fn_module::{{closure}}::h05eae0a21c42e1bf [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:523:5 [INFO] [stdout] 20: 0x563b22c9974e - core::ops::function::FnOnce::call_once::h920d48cc843221b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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 Err (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 Err (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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22c0c63e - rhai_codegen::test::module::generate_tests::one_setter_fn_module::h60bd75e22811fc9d [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1626:9 [INFO] [stdout] 19: 0x563b22c0853a - rhai_codegen::test::module::generate_tests::one_setter_fn_module::{{closure}}::h4d4b96604db8a634 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1572:5 [INFO] [stdout] 20: 0x563b22c99a8e - core::ops::function::FnOnce::call_once::hc4cb70fe75505ba7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bc91f2 - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::h75581f4e2e93e041 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:519:9 [INFO] [stdout] 19: 0x563b22bc5caa - rhai_codegen::test::module::generate_tests::one_single_arg_global_fn_module::{{closure}}::h9387ed441484de4f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:469:5 [INFO] [stdout] 20: 0x563b22c9921e - core::ops::function::FnOnce::call_once::h4a8354911c8cc33c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22be7171 - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::hcd5f24e217463af3 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1040:9 [INFO] [stdout] 19: 0x563b22be406a - rhai_codegen::test::module::generate_tests::one_skipped_sub_module::{{closure}}::he9ccee57cdbca82f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:985:5 [INFO] [stdout] 20: 0x563b22c9965e - core::ops::function::FnOnce::call_once::h8afe767e1ff6d9da [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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]) . into_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]) . into_immutable_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (& arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22beb6b0 - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::h958ab65a633d1616 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1124:9 [INFO] [stdout] 19: 0x563b22be82fa - rhai_codegen::test::module::generate_tests::one_str_arg_fn_module::{{closure}}::hd1f66fb66cc0aee2 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1075:5 [INFO] [stdout] 20: 0x563b22c993ae - core::ops::function::FnOnce::call_once::h69af81651e14d63a [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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]) . into_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]) . into_string () . unwrap () ; Ok (Dynamic :: from (print_out_to (arg0))) } # [inline (always)] fn is_method_call (& self) -> bool { false } } }"`', src/test/module.rs:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22beea87 - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::h7d05a2f769b098fe [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1177:9 [INFO] [stdout] 19: 0x563b22beb70a - rhai_codegen::test::module::generate_tests::one_string_arg_fn_module::{{closure}}::h19e7cafe862af849 [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:1128:5 [INFO] [stdout] 20: 0x563b22c99fde - core::ops::function::FnOnce::call_once::hf53ef8cc67c2e20b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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:312:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x7f4bb4c841dd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x7f4bb4c841dd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x7f4bb4c841dd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x7f4bb4cde02c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x7f4bb4c75731 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x7f4bb4c872c5 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x7f4bb4c872c5 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x7f4bb4c872c5 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x7f4bb4c86fb4 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x7f4bb4c87962 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x7f4bb4c87847 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x7f4bb4c84694 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x7f4bb4c87579 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x7f4bb4c4b6c3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x7f4bb4cdaf88 - core::panicking::assert_failed_inner::h337b271ded48bc15 [INFO] [stdout] 16: 0x563b22c599aa - core::panicking::assert_failed::h359016862967bb8d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:182:5 [INFO] [stdout] 17: 0x563b22bbe812 - rhai_codegen::test::module::generate_tests::assert_streams_eq::h48ad8299cc331c0f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:312:9 [INFO] [stdout] 18: 0x563b22bd27f0 - rhai_codegen::test::module::generate_tests::two_fn_overload_module::h63faa867e68f6faf [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:656:9 [INFO] [stdout] 19: 0x563b22bcc66a - rhai_codegen::test::module::generate_tests::two_fn_overload_module::{{closure}}::h4f10df25b32f497f [INFO] [stdout] at /opt/rustwide/workdir/src/test/module.rs:576:5 [INFO] [stdout] 20: 0x563b22c99e5e - core::ops::function::FnOnce::call_once::hedde4a94ecece8dc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x7f4bb4fa4fc3 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 22: 0x7f4bb4fa4fc3 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 23: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 24: 0x7f4bb4fa3d79 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 25: 0x7f4bb4fa3d79 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x7f4bb4fa3d79 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x7f4bb4fa3d79 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x7f4bb4fa3d79 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 29: 0x7f4bb4fa3d79 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 30: 0x7f4bb4f6d5ee - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 31: 0x7f4bb4f6d5ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 32: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 33: 0x7f4bb4f73bc8 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 34: 0x7f4bb4f73bc8 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 35: 0x7f4bb4f73bc8 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 36: 0x7f4bb4f73bc8 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 37: 0x7f4bb4f73bc8 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 38: 0x7f4bb4f73bc8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 39: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x7f4bb4c91c03 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 41: 0x7f4bb4c91c03 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 42: 0x7f4bb4b89609 - start_thread [INFO] [stdout] 43: 0x7f4bb4aae163 - 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_constant_type_module [INFO] [stdout] test::module::generate_tests::one_double_arg_fn_module [INFO] [stdout] test::module::generate_tests::one_double_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_factory_fn_module [INFO] [stdout] test::module::generate_tests::one_factory_fn_with_comments_module [INFO] [stdout] test::module::generate_tests::one_fn_nested_module [INFO] [stdout] test::module::generate_tests::one_fn_with_cfg_module [INFO] [stdout] test::module::generate_tests::one_getter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_getter_fn_module [INFO] [stdout] test::module::generate_tests::one_index_getter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_index_getter_fn_module [INFO] [stdout] test::module::generate_tests::one_index_getter_fn_with_cfg_attr_module [INFO] [stdout] test::module::generate_tests::one_index_setter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_index_setter_fn_module [INFO] [stdout] test::module::generate_tests::one_mut_ref_fn_module [INFO] [stdout] test::module::generate_tests::one_setter_and_rename_fn_module [INFO] [stdout] test::module::generate_tests::one_setter_fn_module [INFO] [stdout] test::module::generate_tests::one_single_arg_fn_module [INFO] [stdout] test::module::generate_tests::one_single_arg_global_fn_module [INFO] [stdout] test::module::generate_tests::one_skipped_sub_module [INFO] [stdout] test::module::generate_tests::one_str_arg_fn_module [INFO] [stdout] test::module::generate_tests::one_string_arg_fn_module [INFO] [stdout] test::module::generate_tests::two_fn_overload_module [INFO] [stdout] [INFO] [stdout] test result: FAILED. 34 passed; 32 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.87s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "37f0b14d9f685bc106726e1b1f9cb7057f6e72570b0263e5321e03945180c42b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37f0b14d9f685bc106726e1b1f9cb7057f6e72570b0263e5321e03945180c42b", kill_on_drop: false }` [INFO] [stdout] 37f0b14d9f685bc106726e1b1f9cb7057f6e72570b0263e5321e03945180c42b