[INFO] cloning repository https://github.com/Hitesh-jadhav/Secure-Token-Wallet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Hitesh-jadhav/Secure-Token-Wallet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHitesh-jadhav%2FSecure-Token-Wallet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHitesh-jadhav%2FSecure-Token-Wallet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2432e2f69b981a8d186bff121b2f535fc779c1b6 [INFO] testing Hitesh-jadhav/Secure-Token-Wallet against master#7704328ba5ae8d6ce0ac303c9d5a1a1605906766 for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHitesh-jadhav%2FSecure-Token-Wallet" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet [INFO] finished tweaking git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet [INFO] tweaked toml for git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet on toolchain 7704328ba5ae8d6ce0ac303c9d5a1a1605906766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ic-cdk-macros v0.16.0 [INFO] [stderr] Downloaded serde_tokenstream v0.2.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded stacker v0.1.17 [INFO] [stderr] Downloaded ic-cdk-timers v0.10.0 [INFO] [stderr] Downloaded ic0 v0.23.0 [INFO] [stderr] Downloaded psm v0.1.23 [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] [stderr] Downloaded candid v0.10.10 [INFO] [stderr] Downloaded ic-cdk v0.16.0 [INFO] [stderr] Downloaded cc v1.1.31 [INFO] [stderr] Downloaded syn v2.0.82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4409b228e77a065d1eaa78605bba68563f717c7f7970476afe279aefc02ca3fb [INFO] running `Command { std: "docker" "start" "-a" "4409b228e77a065d1eaa78605bba68563f717c7f7970476afe279aefc02ca3fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4409b228e77a065d1eaa78605bba68563f717c7f7970476afe279aefc02ca3fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4409b228e77a065d1eaa78605bba68563f717c7f7970476afe279aefc02ca3fb", kill_on_drop: false }` [INFO] [stdout] 4409b228e77a065d1eaa78605bba68563f717c7f7970476afe279aefc02ca3fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd7eed8cf1bbf3f6668cefe9f06e7b7e06f0bf8526234d6f9b285b9802071b20 [INFO] running `Command { std: "docker" "start" "-a" "fd7eed8cf1bbf3f6668cefe9f06e7b7e06f0bf8526234d6f9b285b9802071b20", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling ic0 v0.23.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Compiling candid v0.10.10 [INFO] [stderr] Compiling ic-cdk-macros v0.16.0 [INFO] [stderr] Compiling ic-cdk v0.16.0 [INFO] [stderr] Compiling ic-cdk-timers v0.10.0 [INFO] [stderr] Compiling secure_token_wallet_backend v0.1.0 (/opt/rustwide/workdir/src/secure_token_wallet_backend) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | match LEDGER.as_ref().unwrap().get(&account) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.24s [INFO] running `Command { std: "docker" "inspect" "fd7eed8cf1bbf3f6668cefe9f06e7b7e06f0bf8526234d6f9b285b9802071b20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd7eed8cf1bbf3f6668cefe9f06e7b7e06f0bf8526234d6f9b285b9802071b20", kill_on_drop: false }` [INFO] [stdout] fd7eed8cf1bbf3f6668cefe9f06e7b7e06f0bf8526234d6f9b285b9802071b20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be5f31f209d83f96d5caa13a38a7cfed6940639d76e270c85d71b88db23b96f9 [INFO] running `Command { std: "docker" "start" "-a" "be5f31f209d83f96d5caa13a38a7cfed6940639d76e270c85d71b88db23b96f9", kill_on_drop: false }` [INFO] [stderr] Compiling secure_token_wallet_backend v0.1.0 (/opt/rustwide/workdir/src/secure_token_wallet_backend) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | match LEDGER.as_ref().unwrap().get(&account) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | LEDGER.as_mut().unwrap().insert(account_owner, create_account(account_owner, 500)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | LEDGER.as_mut().unwrap().insert(sender, create_account(sender, 1000)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 200)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | LEDGER.as_mut().unwrap().insert(sender, create_account(sender, 100)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 50)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 50)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/secure_token_wallet_backend/src/lib.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | LEDGER.as_mut().unwrap().insert(account_owner, create_account(account_owner, 100)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "be5f31f209d83f96d5caa13a38a7cfed6940639d76e270c85d71b88db23b96f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be5f31f209d83f96d5caa13a38a7cfed6940639d76e270c85d71b88db23b96f9", kill_on_drop: false }` [INFO] [stdout] be5f31f209d83f96d5caa13a38a7cfed6940639d76e270c85d71b88db23b96f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+7704328ba5ae8d6ce0ac303c9d5a1a1605906766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3b821db13b39b20a950fb87cfae1f4222083d9089f870ba8bf1189af21d5d306 [INFO] running `Command { std: "docker" "start" "-a" "3b821db13b39b20a950fb87cfae1f4222083d9089f870ba8bf1189af21d5d306", kill_on_drop: false }` [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:39:15 [INFO] [stderr] | [INFO] [stderr] 39 | match LEDGER.as_ref().unwrap().get(&account) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:50:22 [INFO] [stderr] | [INFO] [stderr] 50 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:74:22 [INFO] [stderr] | [INFO] [stderr] 74 | let ledger = LEDGER.as_mut().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:109:13 [INFO] [stderr] | [INFO] [stderr] 109 | LEDGER.as_mut().unwrap().insert(account_owner, create_account(account_owner, 500)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:125:13 [INFO] [stderr] | [INFO] [stderr] 125 | LEDGER.as_mut().unwrap().insert(sender, create_account(sender, 1000)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 200)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:146:13 [INFO] [stderr] | [INFO] [stderr] 146 | LEDGER.as_mut().unwrap().insert(sender, create_account(sender, 100)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:147:13 [INFO] [stderr] | [INFO] [stderr] 147 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 50)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | LEDGER.as_mut().unwrap().insert(receiver, create_account(receiver, 50)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/secure_token_wallet_backend/src/lib.rs:200:13 [INFO] [stderr] | [INFO] [stderr] 200 | LEDGER.as_mut().unwrap().insert(account_owner, create_account(account_owner, 100)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: `secure_token_wallet_backend` (lib test) generated 10 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/secure_token_wallet_backend-569847ec3dc6a5ba) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test tests::test_create_account ... ok [INFO] [stdout] test tests::test_mint_existing_account ... ok [INFO] [stdout] test tests::test_get_balance ... ok [INFO] [stdout] test tests::test_transfer_success ... ok [INFO] [stdout] test tests::test_transfer_insufficient_balance ... ok [INFO] [stdout] test tests::test_transfer_no_sender_account ... ok [INFO] [stdout] test tests::test_mint_tokens ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::test_mint_tokens stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'tests::test_mint_tokens' (20) panicked at src/secure_token_wallet_backend/src/lib.rs:190:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: 0 [INFO] [stdout] right: 500 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x56b311544b82 - std[ed5b486fa4cdb954]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x56b311544b82 - std[ed5b486fa4cdb954]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x56b311544b82 - std[ed5b486fa4cdb954]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x56b311544b82 - <::print::DisplayBacktrace as core[ab67b43d93431064]::fmt::Display>::fmt [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x56b3115593ba - ::fmt [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x56b3115593ba - core[ab67b43d93431064]::fmt::write [INFO] [stdout] 6: 0x56b3115499b6 - std[ed5b486fa4cdb954]::io::default_write_fmt::> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x56b3115499b6 - as std[ed5b486fa4cdb954]::io::Write>::write_fmt [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x56b31152304f - ::print [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x56b31152304f - std[ed5b486fa4cdb954]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x56b31153ceb9 - std[ed5b486fa4cdb954]::panicking::default_hook [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x56b3114d4c9e - core[ab67b43d93431064]::ops::function::Fn<(&'a std[ed5b486fa4cdb954]::panic::PanicHookInfo<'b>,), Output = ()> + core[ab67b43d93431064]::marker::Send + core[ab67b43d93431064]::marker::Sync> as core[ab67b43d93431064]::ops::function::Fn<(&std[ed5b486fa4cdb954]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 12: 0x56b3114d4c9e - test[f0ec78552bebb08e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x56b31153d072 - core[ab67b43d93431064]::ops::function::Fn<(&'a std[ed5b486fa4cdb954]::panic::PanicHookInfo<'b>,), Output = ()> + core[ab67b43d93431064]::marker::Send + core[ab67b43d93431064]::marker::Sync> as core[ab67b43d93431064]::ops::function::Fn<(&std[ed5b486fa4cdb954]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/alloc/src/boxed.rs:2220:9 [INFO] [stdout] 14: 0x56b31153d072 - std[ed5b486fa4cdb954]::panicking::panic_with_hook [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x56b311523108 - std[ed5b486fa4cdb954]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x56b31151ab69 - std[ed5b486fa4cdb954]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x56b311523f5d - __rustc[5067f77124470312]::rust_begin_unwind [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x56b311559a4c - core[ab67b43d93431064]::panicking::panic_fmt [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x56b311559943 - core[ab67b43d93431064]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x56b311555e28 - core[ab67b43d93431064]::panicking::assert_failed:: [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x56b3114c6c72 - secure_token_wallet_backend[bf7512f72d1a5448]::tests::test_mint_tokens [INFO] [stdout] at /opt/rustwide/workdir/src/secure_token_wallet_backend/src/lib.rs:190:9 [INFO] [stdout] 22: 0x56b3114c53a7 - secure_token_wallet_backend[bf7512f72d1a5448]::tests::test_mint_tokens::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/secure_token_wallet_backend/src/lib.rs:179:26 [INFO] [stdout] 23: 0x56b3114c8e36 - >::call_once [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x56b3114c904b - core[ab67b43d93431064]::result::Result<(), alloc[8787631d7fe8ec5a]::string::String> as core[ab67b43d93431064]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x56b3114c904b - test[f0ec78552bebb08e]::__rust_begin_short_backtrace::, fn() -> core[ab67b43d93431064]::result::Result<(), alloc[8787631d7fe8ec5a]::string::String>> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x56b3114d58aa - test[f0ec78552bebb08e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x56b3114d58aa - as core[ab67b43d93431064]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x56b3114d58aa - std[ed5b486fa4cdb954]::panicking::catch_unwind::do_call::, core[ab67b43d93431064]::result::Result<(), alloc[8787631d7fe8ec5a]::string::String>> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x56b3114d58aa - std[ed5b486fa4cdb954]::panicking::catch_unwind::, core[ab67b43d93431064]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x56b3114d58aa - std[ed5b486fa4cdb954]::panic::catch_unwind::, core[ab67b43d93431064]::result::Result<(), alloc[8787631d7fe8ec5a]::string::String>> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x56b3114d58aa - test[f0ec78552bebb08e]::run_test_in_process [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x56b3114d58aa - test[f0ec78552bebb08e]::run_test::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x56b3114d0e54 - test[f0ec78552bebb08e]::run_test::{closure#1} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x56b3114d0e54 - std[ed5b486fa4cdb954]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x56b3114d83a2 - std[ed5b486fa4cdb954]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x56b3114d83a2 - ::{closure#1}::{closure#0}> as core[ab67b43d93431064]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x56b3114d83a2 - std[ed5b486fa4cdb954]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x56b3114d83a2 - std[ed5b486fa4cdb954]::panicking::catch_unwind::<(), core[ab67b43d93431064]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x56b3114d83a2 - std[ed5b486fa4cdb954]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x56b3114d83a2 - std[ed5b486fa4cdb954]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x56b3114d83a2 - ::{closure#1} as core[ab67b43d93431064]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56b31154442f - + core[ab67b43d93431064]::marker::Send> as core[ab67b43d93431064]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/alloc/src/boxed.rs:2206:9 [INFO] [stdout] 43: 0x56b31154442f - ::new::thread_start [INFO] [stdout] at /rustc/7704328ba5ae8d6ce0ac303c9d5a1a1605906766/library/std/src/sys/thread/unix.rs:127:17 [INFO] [stdout] 44: 0x7033ca87aaa4 - [INFO] [stdout] 45: 0x7033ca907a64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::test_mint_tokens [INFO] [stdout] [INFO] [stdout] test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "3b821db13b39b20a950fb87cfae1f4222083d9089f870ba8bf1189af21d5d306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b821db13b39b20a950fb87cfae1f4222083d9089f870ba8bf1189af21d5d306", kill_on_drop: false }` [INFO] [stdout] 3b821db13b39b20a950fb87cfae1f4222083d9089f870ba8bf1189af21d5d306