[INFO] cloning repository https://github.com/SKant03/ICP_tokenplatform [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SKant03/ICP_tokenplatform" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSKant03%2FICP_tokenplatform", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSKant03%2FICP_tokenplatform'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a8b6f0c20c7e8419281ca3f0739f97d72168b72 [INFO] checking SKant03/ICP_tokenplatform against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSKant03%2FICP_tokenplatform" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SKant03/ICP_tokenplatform [INFO] finished tweaking git repo https://github.com/SKant03/ICP_tokenplatform [INFO] tweaked toml for git repo https://github.com/SKant03/ICP_tokenplatform written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SKant03/ICP_tokenplatform on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SKant03/ICP_tokenplatform 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "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 ic-cdk-executor v0.1.0 [INFO] [stderr] Downloaded ic-cdk-macros v0.17.2 [INFO] [stderr] Downloaded ic-cdk v0.17.2 [INFO] [stderr] Downloaded ic-cdk-macros v0.18.5 [INFO] [stderr] Downloaded candid_derive v0.10.16 [INFO] [stderr] Downloaded candid v0.10.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 280e2770ebb5a74d7d83c79df769bcd51ca13a4ffb5a7af3b0fe92d9683e8809 [INFO] running `Command { std: "docker" "start" "-a" "280e2770ebb5a74d7d83c79df769bcd51ca13a4ffb5a7af3b0fe92d9683e8809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "280e2770ebb5a74d7d83c79df769bcd51ca13a4ffb5a7af3b0fe92d9683e8809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "280e2770ebb5a74d7d83c79df769bcd51ca13a4ffb5a7af3b0fe92d9683e8809", kill_on_drop: false }` [INFO] [stdout] 280e2770ebb5a74d7d83c79df769bcd51ca13a4ffb5a7af3b0fe92d9683e8809 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4be0a49d9b27c268b235b757e5404b79f96ca022c6b516488a6bc3c84f4fac8b [INFO] running `Command { std: "docker" "start" "-a" "4be0a49d9b27c268b235b757e5404b79f96ca022c6b516488a6bc3c84f4fac8b", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.10.16 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling ic-cdk-executor v0.1.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking ic_principal v0.1.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking candid v0.10.16 [INFO] [stderr] Compiling ic-cdk-macros v0.17.2 [INFO] [stderr] Compiling ic-cdk-macros v0.18.5 [INFO] [stderr] Checking ic-cdk v0.17.2 [INFO] [stderr] Checking ic-cdk-timers v0.11.0 [INFO] [stderr] Checking token_backend v0.1.0 (/opt/rustwide/workdir/src/token_backend) [INFO] [stdout] warning: field `owner` is never read [INFO] [stdout] --> src/token_backend/src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Token{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | owner:Principal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `owner` is never read [INFO] [stdout] --> src/token_backend/src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Token{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | owner:Principal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(tokens) = TOKENS.as_mut() { [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)]` (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/token_backend/src/lib.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | let tokens = TOKENS.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/token_backend/src/lib.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | if let Some(tokens) = TOKENS.as_mut() { [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:115:30 [INFO] [stdout] | [INFO] [stdout] 115 | if let Some(token) = TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | let tokens = TOKENS.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 shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | if let Some(token) = TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:115:30 [INFO] [stdout] | [INFO] [stdout] 115 | if let Some(token) = TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | TOKENS.as_ref().unwrap().iter().map(|(_,Token)|{ [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 125 | if let Some(token) = TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/token_backend/src/lib.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | TOKENS.as_ref().unwrap().iter().map(|(_,Token)|{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | TOKENS.as_ref().unwrap().iter().map(|(_,Token)|{ [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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | if let Some(token)= TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stdout] warning: variable `Token` should have a snake case name [INFO] [stdout] --> src/token_backend/src/lib.rs:135:49 [INFO] [stdout] | [INFO] [stdout] 135 | TOKENS.as_ref().unwrap().iter().map(|(_,Token)|{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/token_backend/src/lib.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | if let Some(token)= TOKENS.as_ref().unwrap().get(&symbol){ [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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.82s [INFO] running `Command { std: "docker" "inspect" "4be0a49d9b27c268b235b757e5404b79f96ca022c6b516488a6bc3c84f4fac8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4be0a49d9b27c268b235b757e5404b79f96ca022c6b516488a6bc3c84f4fac8b", kill_on_drop: false }` [INFO] [stdout] 4be0a49d9b27c268b235b757e5404b79f96ca022c6b516488a6bc3c84f4fac8b