[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 1.90.0 for beta-1.91-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHitesh-jadhav%2FSecure-Token-Wallet" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Hitesh-jadhav/Secure-Token-Wallet on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ryu v1.0.18 [INFO] [stderr] Downloaded proc-macro2 v1.0.88 [INFO] [stderr] Downloaded unicode-ident v1.0.13 [INFO] [stderr] Downloaded quote v1.0.37 [INFO] [stderr] Downloaded ic-cdk-timers v0.10.0 [INFO] [stderr] Downloaded serde_json v1.0.132 [INFO] [stderr] Downloaded futures-executor v0.3.31 [INFO] [stderr] Downloaded futures-channel v0.3.31 [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] [stderr] Downloaded candid v0.10.10 [INFO] [stderr] Downloaded num-bigint v0.4.6 [INFO] [stderr] Downloaded unicode-width v0.1.14 [INFO] [stderr] Downloaded futures-util v0.3.31 [INFO] [stderr] Downloaded cc v1.1.31 [INFO] [stderr] Downloaded ic-cdk-macros v0.16.0 [INFO] [stderr] Downloaded ic-cdk v0.16.0 [INFO] [stderr] Downloaded ic0 v0.23.0 [INFO] [stderr] Downloaded serde v1.0.210 [INFO] [stderr] Downloaded either v1.13.0 [INFO] [stderr] Downloaded binread_derive v2.1.0 [INFO] [stderr] Downloaded rustversion v1.0.18 [INFO] [stderr] Downloaded binread v2.2.0 [INFO] [stderr] Downloaded candid_derive v0.6.6 [INFO] [stderr] Downloaded data-encoding v2.6.0 [INFO] [stderr] Downloaded cpufeatures v0.2.14 [INFO] [stderr] Downloaded ic_principal v0.1.1 [INFO] [stderr] Downloaded leb128 v0.2.5 [INFO] [stderr] Downloaded arrayvec v0.5.2 [INFO] [stderr] Downloaded pretty v0.12.3 [INFO] [stderr] Downloaded stacker v0.1.17 [INFO] [stderr] Downloaded thiserror-impl v1.0.64 [INFO] [stderr] Downloaded thiserror v1.0.64 [INFO] [stderr] Downloaded serde_tokenstream v0.2.2 [INFO] [stderr] Downloaded libc v0.2.161 [INFO] [stderr] Downloaded serde_bytes v0.11.15 [INFO] [stderr] Downloaded psm v0.1.23 [INFO] [stderr] Downloaded slotmap v1.0.7 [INFO] [stderr] Downloaded futures-core v0.3.31 [INFO] [stderr] Downloaded futures-io v0.3.31 [INFO] [stderr] Downloaded futures-macro v0.3.31 [INFO] [stderr] Downloaded futures-sink v0.3.31 [INFO] [stderr] Downloaded futures-task v0.3.31 [INFO] [stderr] Downloaded futures v0.3.31 [INFO] [stderr] Downloaded lazy_static v1.5.0 [INFO] [stderr] Downloaded hex v0.4.3 [INFO] [stderr] Downloaded crc32fast v1.4.2 [INFO] [stderr] Downloaded paste v1.0.15 [INFO] [stderr] Downloaded typed-arena v2.0.2 [INFO] [stderr] Downloaded version_check v0.9.5 [INFO] [stderr] Downloaded syn v2.0.82 [INFO] [stderr] Downloaded serde_derive v1.0.210 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26b48914b8c21ab081ed3463e976ed80e222e916723ea7cc98de545612c84a4e [INFO] running `Command { std: "docker" "start" "-a" "26b48914b8c21ab081ed3463e976ed80e222e916723ea7cc98de545612c84a4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26b48914b8c21ab081ed3463e976ed80e222e916723ea7cc98de545612c84a4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26b48914b8c21ab081ed3463e976ed80e222e916723ea7cc98de545612c84a4e", kill_on_drop: false }` [INFO] [stdout] 26b48914b8c21ab081ed3463e976ed80e222e916723ea7cc98de545612c84a4e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 019bd7cb257903bb61f640146b5b8496a133052bc0eb868046dba012461c899f [INFO] running `Command { std: "docker" "start" "-a" "019bd7cb257903bb61f640146b5b8496a133052bc0eb868046dba012461c899f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling ic0 v0.23.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling num-integer v0.1.46 [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 sha2 v0.10.8 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.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 futures-util v0.3.31 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ic_principal v0.1.1 [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)]` 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 28.26s [INFO] running `Command { std: "docker" "inspect" "019bd7cb257903bb61f640146b5b8496a133052bc0eb868046dba012461c899f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "019bd7cb257903bb61f640146b5b8496a133052bc0eb868046dba012461c899f", kill_on_drop: false }` [INFO] [stdout] 019bd7cb257903bb61f640146b5b8496a133052bc0eb868046dba012461c899f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 367c811bbe34cb3fd7b2baa2108a085b36dbff482300a63696f15531f2ad3fbe [INFO] running `Command { std: "docker" "start" "-a" "367c811bbe34cb3fd7b2baa2108a085b36dbff482300a63696f15531f2ad3fbe", 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)]` 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" "367c811bbe34cb3fd7b2baa2108a085b36dbff482300a63696f15531f2ad3fbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "367c811bbe34cb3fd7b2baa2108a085b36dbff482300a63696f15531f2ad3fbe", kill_on_drop: false }` [INFO] [stdout] 367c811bbe34cb3fd7b2baa2108a085b36dbff482300a63696f15531f2ad3fbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 58f016e018201d6b7760aa7c0e3286bd188959e8c0d31158cb40054e6b54e221 [INFO] running `Command { std: "docker" "start" "-a" "58f016e018201d6b7760aa7c0e3286bd188959e8c0d31158cb40054e6b54e221", 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)]` 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.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/secure_token_wallet_backend-6f26be192e3c8de7) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test tests::test_create_account ... ok [INFO] [stdout] test tests::test_mint_tokens ... ok [INFO] [stdout] test tests::test_mint_existing_account ... ok [INFO] [stdout] test tests::test_transfer_no_sender_account ... ok [INFO] [stdout] test tests::test_transfer_success ... ok [INFO] [stdout] test tests::test_transfer_insufficient_balance ... FAILED [INFO] [stdout] test tests::test_get_balance ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::test_transfer_insufficient_balance stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'tests::test_transfer_insufficient_balance' panicked at src/secure_token_wallet_backend/src/lib.rs:152:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: "Sender does not have an account" [INFO] [stdout] right: "Insufficient balance" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5713ffd2bc62 - std::backtrace_rs::backtrace::libunwind::trace::h2d45396358f41939 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5713ffd2bc62 - std::backtrace_rs::backtrace::trace_unsynchronized::hffcefc0b67f1d6e2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5713ffd2bc62 - std::sys::backtrace::_print_fmt::hd72f71d23b436b92 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5713ffd2bc62 - ::fmt::hdcfcb6d4c8489523 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5713ffd50e73 - core::fmt::rt::Argument::fmt::h2c56b3114963061a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5713ffd50e73 - core::fmt::write::h8a494366950f23bb [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5713ffd28be3 - std::io::default_write_fmt::h7b8824096454f323 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5713ffd28be3 - std::io::Write::write_fmt::h4e71294925c334d0 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5713ffd2bab2 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5713ffd2d1d9 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x5713ffd2d00e - std::panicking::default_hook::h2c66fc99e962531d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5713ffcf0354 - as core::ops::function::Fn>::call::hb6bd65493727d71a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x5713ffcf0354 - test::test_main_with_exit_callback::{{closure}}::h60217ec76a0ece4a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5713ffd2dbae - as core::ops::function::Fn>::call::h318e4efb8c1a5689 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x5713ffd2dbae - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x5713ffd2d97a - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x5713ffd2c159 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5713ffd2d60d - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x5713ffd4f960 - core::panicking::panic_fmt::h62f63d096dd276af [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5713ffd4fc1f - core::panicking::assert_failed_inner::h102b4539a88470c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:448:17 [INFO] [stdout] 20: 0x5713ffcb3dda - core::panicking::assert_failed::hf6d1642eca49f8c9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:403:5 [INFO] [stdout] 21: 0x5713ffcb606c - secure_token_wallet_backend::tests::test_transfer_insufficient_balance::h9d61bc07200c9c46 [INFO] [stdout] at /opt/rustwide/workdir/src/secure_token_wallet_backend/src/lib.rs:152:9 [INFO] [stdout] 22: 0x5713ffcb5c17 - secure_token_wallet_backend::tests::test_transfer_insufficient_balance::{{closure}}::h41aa0faee77f8940 [INFO] [stdout] at /opt/rustwide/workdir/src/secure_token_wallet_backend/src/lib.rs:139:44 [INFO] [stdout] 23: 0x5713ffcb2c96 - core::ops::function::FnOnce::call_once::h3db51ba8bc82a512 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x5713ffcf5bbb - core::ops::function::FnOnce::call_once::h1f9474f1347fff52 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x5713ffcf5bbb - test::__rust_begin_short_backtrace::ha52ab26e77157f03 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x5713ffcf4cf5 - test::run_test_in_process::{{closure}}::h229c1a11a50b261f [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x5713ffcf4cf5 - as core::ops::function::FnOnce<()>>::call_once::h78821afbf97b39a9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x5713ffcf4cf5 - std::panicking::catch_unwind::do_call::h53abf3ed5bd32ba3 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x5713ffcf4cf5 - std::panicking::catch_unwind::h6deb5fe1e91873c9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x5713ffcf4cf5 - std::panic::catch_unwind::hea0829b6b565654b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5713ffcf4cf5 - test::run_test_in_process::hdc44dfecea3db21b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x5713ffcf4cf5 - test::run_test::{{closure}}::h0364ba59bf23f652 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5713ffcb88f4 - test::run_test::{{closure}}::h32730b304eec05da [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5713ffcb88f4 - std::sys::backtrace::__rust_begin_short_backtrace::h177cb952fc54ad2c [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x5713ffcbc2ca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h119d903520007597 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5713ffcbc2ca - as core::ops::function::FnOnce<()>>::call_once::hab88401d606702a6 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5713ffcbc2ca - std::panicking::catch_unwind::do_call::h163fe12cca9901c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5713ffcbc2ca - std::panicking::catch_unwind::he81557d0e17cc1bc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5713ffcbc2ca - std::panic::catch_unwind::hc2b8e79c20593955 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5713ffcbc2ca - std::thread::Builder::spawn_unchecked_::{{closure}}::hfa6b4978e07815cc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5713ffcbc2ca - core::ops::function::FnOnce::call_once{{vtable.shim}}::hddcd7484a13fd793 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x5713ffd30b2f - as core::ops::function::FnOnce>::call_once::h5924238c754de3b8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x5713ffd30b2f - std::sys::pal::unix::thread::Thread::new::thread_start::hb6e99e73da4d28f8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 44: 0x7c63414c0aa4 - [INFO] [stdout] 45: 0x7c634154da34 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::test_transfer_insufficient_balance [INFO] [stdout] [INFO] [stdout] test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "58f016e018201d6b7760aa7c0e3286bd188959e8c0d31158cb40054e6b54e221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58f016e018201d6b7760aa7c0e3286bd188959e8c0d31158cb40054e6b54e221", kill_on_drop: false }` [INFO] [stdout] 58f016e018201d6b7760aa7c0e3286bd188959e8c0d31158cb40054e6b54e221