[INFO] cloning repository https://github.com/Rudra-1610/tune_sphere [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rudra-1610/tune_sphere" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRudra-1610%2Ftune_sphere", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRudra-1610%2Ftune_sphere'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 64d83bf4f8ebebcd4c35963e70f2cf1b261a889c [INFO] testing Rudra-1610/tune_sphere against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRudra-1610%2Ftune_sphere" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Rudra-1610/tune_sphere [INFO] finished tweaking git repo https://github.com/Rudra-1610/tune_sphere [INFO] tweaked toml for git repo https://github.com/Rudra-1610/tune_sphere written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Rudra-1610/tune_sphere on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Rudra-1610/tune_sphere 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cf8d125e362babe340c492a20bd1dfca5db295a454eee22272b8475015f31e7 [INFO] running `Command { std: "docker" "start" "-a" "8cf8d125e362babe340c492a20bd1dfca5db295a454eee22272b8475015f31e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cf8d125e362babe340c492a20bd1dfca5db295a454eee22272b8475015f31e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cf8d125e362babe340c492a20bd1dfca5db295a454eee22272b8475015f31e7", kill_on_drop: false }` [INFO] [stdout] 8cf8d125e362babe340c492a20bd1dfca5db295a454eee22272b8475015f31e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6878687815a19d11201cc2c79bab52de252cf8a853a95b813960e6e8062f1852 [INFO] running `Command { std: "docker" "start" "-a" "6878687815a19d11201cc2c79bab52de252cf8a853a95b813960e6e8062f1852", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling ic-cdk-executor v0.1.0 [INFO] [stderr] Compiling slab v0.4.10 [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 ic-stable-structures v0.5.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pretty v0.12.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling sha2 v0.10.9 [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 ic_principal v0.1.1 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Compiling candid v0.10.14 [INFO] [stderr] Compiling ic-cdk-macros v0.17.2 [INFO] [stderr] Compiling ic-cdk v0.17.2 [INFO] [stderr] Compiling ic-cdk-timers v0.11.0 [INFO] [stderr] Compiling icp-music-platform-backend v0.1.0 (/opt/rustwide/workdir/src/icp-music-platform-backend) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> src/icp-music-platform-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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:580:22 [INFO] [stdout] | [INFO] [stdout] 580 | if let Some((id, versions)) = tv.iter_mut().find(|(tid, _)| *tid == track_id) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1292:22 [INFO] [stdout] | [INFO] [stdout] 1292 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1308:22 [INFO] [stdout] | [INFO] [stdout] 1308 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1329:22 [INFO] [stdout] | [INFO] [stdout] 1329 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1345:22 [INFO] [stdout] | [INFO] [stdout] 1345 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2484:9 [INFO] [stdout] | [INFO] [stdout] 2484 | let now = ic_cdk::api::time() / 1_000_000; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `principal` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2666:29 [INFO] [stdout] | [INFO] [stdout] 2666 | fn get_user_id_by_principal(principal: Principal) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_principal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_rate_limit` is never used [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1709:4 [INFO] [stdout] | [INFO] [stdout] 1709 | fn check_rate_limit(principal: Principal, max_calls: u32, window_secs: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2673:17 [INFO] [stdout] | [INFO] [stdout] 2673 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 2673 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.41s [INFO] running `Command { std: "docker" "inspect" "6878687815a19d11201cc2c79bab52de252cf8a853a95b813960e6e8062f1852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6878687815a19d11201cc2c79bab52de252cf8a853a95b813960e6e8062f1852", kill_on_drop: false }` [INFO] [stdout] 6878687815a19d11201cc2c79bab52de252cf8a853a95b813960e6e8062f1852 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3154bc9ab03031b0a3c2ffa24a1fbe2ff37d6e551a651c1f5073963e7aa870d9 [INFO] running `Command { std: "docker" "start" "-a" "3154bc9ab03031b0a3c2ffa24a1fbe2ff37d6e551a651c1f5073963e7aa870d9", kill_on_drop: false }` [INFO] [stderr] Compiling icp-music-platform-backend v0.1.0 (/opt/rustwide/workdir/src/icp-music-platform-backend) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> src/icp-music-platform-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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:580:22 [INFO] [stdout] | [INFO] [stdout] 580 | if let Some((id, versions)) = tv.iter_mut().find(|(tid, _)| *tid == track_id) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1292:22 [INFO] [stdout] | [INFO] [stdout] 1292 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1308:22 [INFO] [stdout] | [INFO] [stdout] 1308 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1329:22 [INFO] [stdout] | [INFO] [stdout] 1329 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1345:22 [INFO] [stdout] | [INFO] [stdout] 1345 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2484:9 [INFO] [stdout] | [INFO] [stdout] 2484 | let now = ic_cdk::api::time() / 1_000_000; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `principal` [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2666:29 [INFO] [stdout] | [INFO] [stdout] 2666 | fn get_user_id_by_principal(principal: Principal) -> Option { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_principal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_rate_limit` is never used [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:1709:4 [INFO] [stdout] | [INFO] [stdout] 1709 | fn check_rate_limit(principal: Principal, max_calls: u32, window_secs: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/icp-music-platform-backend/src/lib.rs:2673:17 [INFO] [stdout] | [INFO] [stdout] 2673 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 2673 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.99s [INFO] running `Command { std: "docker" "inspect" "3154bc9ab03031b0a3c2ffa24a1fbe2ff37d6e551a651c1f5073963e7aa870d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3154bc9ab03031b0a3c2ffa24a1fbe2ff37d6e551a651c1f5073963e7aa870d9", kill_on_drop: false }` [INFO] [stdout] 3154bc9ab03031b0a3c2ffa24a1fbe2ff37d6e551a651c1f5073963e7aa870d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 24a7e5a0e0763686608aeb70e042147bfb111cbf04de8630f18e3341ff9f9fdb [INFO] running `Command { std: "docker" "start" "-a" "24a7e5a0e0763686608aeb70e042147bfb111cbf04de8630f18e3341ff9f9fdb", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ic_cdk::storage` [INFO] [stderr] --> src/icp-music-platform-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)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:580:22 [INFO] [stderr] | [INFO] [stderr] 580 | if let Some((id, versions)) = tv.iter_mut().find(|(tid, _)| *tid == track_id) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:1292:22 [INFO] [stderr] | [INFO] [stderr] 1292 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:1308:22 [INFO] [stderr] | [INFO] [stderr] 1308 | if let Some((p, artists)) = fa.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:1329:22 [INFO] [stderr] | [INFO] [stderr] 1329 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:1345:22 [INFO] [stderr] | [INFO] [stderr] 1345 | if let Some((p, tracks)) = ft.iter_mut().find(|(p, _)| *p == principal) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `now` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:2484:9 [INFO] [stderr] | [INFO] [stderr] 2484 | let now = ic_cdk::api::time() / 1_000_000; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `principal` [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:2666:29 [INFO] [stderr] | [INFO] [stderr] 2666 | fn get_user_id_by_principal(principal: Principal) -> Option { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_principal` [INFO] [stderr] [INFO] [stderr] warning: function `check_rate_limit` is never used [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:1709:4 [INFO] [stderr] | [INFO] [stderr] 1709 | fn check_rate_limit(principal: Principal, max_calls: u32, window_secs: u64) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/icp-music-platform-backend/src/lib.rs:2673:17 [INFO] [stderr] | [INFO] [stderr] 2673 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 2673 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `icp-music-platform-backend` (lib test) generated 10 warnings (run `cargo fix --lib -p icp-music-platform-backend --tests` to apply 2 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/icp_music_platform_backend-d2c2e44d36cfb67d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "24a7e5a0e0763686608aeb70e042147bfb111cbf04de8630f18e3341ff9f9fdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24a7e5a0e0763686608aeb70e042147bfb111cbf04de8630f18e3341ff9f9fdb", kill_on_drop: false }` [INFO] [stdout] 24a7e5a0e0763686608aeb70e042147bfb111cbf04de8630f18e3341ff9f9fdb