[INFO] cloning repository https://github.com/mohtashimnawaz/dmsicp-final [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mohtashimnawaz/dmsicp-final" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohtashimnawaz%2Fdmsicp-final", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohtashimnawaz%2Fdmsicp-final'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6117103b4c9eecf3b52386dccf3990b7df820018 [INFO] testing mohtashimnawaz/dmsicp-final against 1.90.0 for beta-1.91-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmohtashimnawaz%2Fdmsicp-final" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mohtashimnawaz/dmsicp-final [INFO] finished tweaking git repo https://github.com/mohtashimnawaz/dmsicp-final [INFO] tweaked toml for git repo https://github.com/mohtashimnawaz/dmsicp-final written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mohtashimnawaz/dmsicp-final 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/mohtashimnawaz/dmsicp-final 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pretty v0.12.4 [INFO] [stderr] Downloaded ic0 v0.23.0 [INFO] [stderr] Downloaded serde_tokenstream v0.2.2 [INFO] [stderr] Downloaded ic-ledger-types v0.14.0 [INFO] [stderr] Downloaded ic-cdk v0.17.1 [INFO] [stderr] Downloaded ic-cdk-timers v0.11.0 [INFO] [stderr] Downloaded binread_derive v2.1.0 [INFO] [stderr] Downloaded binread v2.2.0 [INFO] [stderr] Downloaded candid_derive v0.6.6 [INFO] [stderr] Downloaded candid v0.10.13 [INFO] [stderr] Downloaded ic-cdk-macros v0.17.1 [INFO] [stderr] Downloaded ic_principal v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 937c05fc5e93ef65d97d6b41862789d864a667b9f0294518fa0964499e9cd76b [INFO] running `Command { std: "docker" "start" "-a" "937c05fc5e93ef65d97d6b41862789d864a667b9f0294518fa0964499e9cd76b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "937c05fc5e93ef65d97d6b41862789d864a667b9f0294518fa0964499e9cd76b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "937c05fc5e93ef65d97d6b41862789d864a667b9f0294518fa0964499e9cd76b", kill_on_drop: false }` [INFO] [stdout] 937c05fc5e93ef65d97d6b41862789d864a667b9f0294518fa0964499e9cd76b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a097ee8aac3e3b0539541eb2b5cb83f313566a559da67c536e2b76c9a3627b13 [INFO] running `Command { std: "docker" "start" "-a" "a097ee8aac3e3b0539541eb2b5cb83f313566a559da67c536e2b76c9a3627b13", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-core v0.3.31 [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 futures-channel v0.3.31 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling ic0 v0.23.0 [INFO] [stderr] Compiling pretty v0.12.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling psm v0.1.25 [INFO] [stderr] Compiling stacker v0.1.20 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [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.17 [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.13 [INFO] [stderr] Compiling ic-cdk-macros v0.17.1 [INFO] [stderr] Compiling ic-cdk v0.17.1 [INFO] [stderr] Compiling ic-ledger-types v0.14.0 [INFO] [stderr] Compiling ic-cdk-timers v0.11.0 [INFO] [stderr] Compiling dms_icp_backend v0.1.0 (/opt/rustwide/workdir/src/dms_icp_backend) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_cdk::storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk_macros::{init, update, query}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_SUBACCOUNT` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:5:70 [INFO] [stdout] | [INFO] [stdout] 5 | use ic_ledger_types::{AccountIdentifier, Memo, Tokens, TransferArgs, DEFAULT_SUBACCOUNT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `owner` is never read [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Switch { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | owner: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(dms) = &mut DMS { [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(dms) = &mut DMS { [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(dms) = &mut DMS { [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.27s [INFO] running `Command { std: "docker" "inspect" "a097ee8aac3e3b0539541eb2b5cb83f313566a559da67c536e2b76c9a3627b13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a097ee8aac3e3b0539541eb2b5cb83f313566a559da67c536e2b76c9a3627b13", kill_on_drop: false }` [INFO] [stdout] a097ee8aac3e3b0539541eb2b5cb83f313566a559da67c536e2b76c9a3627b13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a5c962b00b051388fa890f1b95a0a72736e8aee6a502818bd58128d2ae3a6675 [INFO] running `Command { std: "docker" "start" "-a" "a5c962b00b051388fa890f1b95a0a72736e8aee6a502818bd58128d2ae3a6675", kill_on_drop: false }` [INFO] [stderr] Compiling dms_icp_backend v0.1.0 (/opt/rustwide/workdir/src/dms_icp_backend) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_cdk::storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk_macros::{init, update, query}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DEFAULT_SUBACCOUNT` [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:5:70 [INFO] [stdout] | [INFO] [stdout] 5 | use ic_ledger_types::{AccountIdentifier, Memo, Tokens, TransferArgs, DEFAULT_SUBACCOUNT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `owner` is never read [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Switch { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | owner: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(dms) = &mut DMS { [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(dms) = &mut DMS { [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/dms_icp_backend/src/lib.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(dms) = &mut DMS { [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(dms) = &raw mut DMS { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "a5c962b00b051388fa890f1b95a0a72736e8aee6a502818bd58128d2ae3a6675", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5c962b00b051388fa890f1b95a0a72736e8aee6a502818bd58128d2ae3a6675", kill_on_drop: false }` [INFO] [stdout] a5c962b00b051388fa890f1b95a0a72736e8aee6a502818bd58128d2ae3a6675 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 67e351d337ebe71eed7d36fe8125398a255046dccd44d01223211a0db6986aea [INFO] running `Command { std: "docker" "start" "-a" "67e351d337ebe71eed7d36fe8125398a255046dccd44d01223211a0db6986aea", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ic_cdk::storage` [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use ic_cdk::storage; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `query` [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:2:35 [INFO] [stderr] | [INFO] [stderr] 2 | use ic_cdk_macros::{init, update, query}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `DEFAULT_SUBACCOUNT` [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:5:70 [INFO] [stderr] | [INFO] [stderr] 5 | use ic_ledger_types::{AccountIdentifier, Memo, Tokens, TransferArgs, DEFAULT_SUBACCOUNT}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `owner` is never read [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 15 | struct Switch { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 16 | owner: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Switch` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:42:28 [INFO] [stderr] | [INFO] [stderr] 42 | if let Some(dms) = &mut DMS { [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 42 | if let Some(dms) = &raw mut DMS { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:51:28 [INFO] [stderr] | [INFO] [stderr] 51 | if let Some(dms) = &mut DMS { [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 51 | if let Some(dms) = &raw mut DMS { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/dms_icp_backend/src/lib.rs:62:28 [INFO] [stderr] | [INFO] [stderr] 62 | if let Some(dms) = &mut DMS { [INFO] [stderr] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 0 tests [INFO] [stderr] = note: for more information, see [INFO] [stdout] [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] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 62 | if let Some(dms) = &raw mut DMS { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `dms_icp_backend` (lib test) generated 7 warnings (run `cargo fix --lib -p dms_icp_backend --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dms_icp_backend-012a5942f7e35e46) [INFO] running `Command { std: "docker" "inspect" "67e351d337ebe71eed7d36fe8125398a255046dccd44d01223211a0db6986aea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67e351d337ebe71eed7d36fe8125398a255046dccd44d01223211a0db6986aea", kill_on_drop: false }` [INFO] [stdout] 67e351d337ebe71eed7d36fe8125398a255046dccd44d01223211a0db6986aea