[INFO] cloning repository https://github.com/Wow11One/Tokenmania [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wow11One/Tokenmania" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6da57aec22a44cc8b368300994ea65ebd4fad13f [INFO] checking Wow11One/Tokenmania against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] finished tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] tweaked toml for git repo https://github.com/Wow11One/Tokenmania written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Wow11One/Tokenmania on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Wow11One/Tokenmania 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking Wow11One/Tokenmania against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] finished tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] tweaked toml for git repo https://github.com/Wow11One/Tokenmania written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Wow11One/Tokenmania on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Wow11One/Tokenmania 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded icrc-ledger-types v0.1.6 [INFO] [stderr] Downloaded ic-cdk-macros v0.13.3 [INFO] [stderr] Downloaded ic-stable-structures v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbb31a8a50a0250d56f1b2c0a6829503acc3ef5bd381dcdecc6ad71b4f65025c [INFO] running `Command { std: "docker" "start" "-a" "bbb31a8a50a0250d56f1b2c0a6829503acc3ef5bd381dcdecc6ad71b4f65025c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbb31a8a50a0250d56f1b2c0a6829503acc3ef5bd381dcdecc6ad71b4f65025c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbb31a8a50a0250d56f1b2c0a6829503acc3ef5bd381dcdecc6ad71b4f65025c", kill_on_drop: false }` [INFO] [stdout] bbb31a8a50a0250d56f1b2c0a6829503acc3ef5bd381dcdecc6ad71b4f65025c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dunmustuse_in_always_ok" "-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8b674bc17e1cf231211eec03ec416d211445caf45384215b019458bd297c14c [INFO] running `Command { std: "docker" "start" "-a" "b8b674bc17e1cf231211eec03ec416d211445caf45384215b019458bd297c14c", kill_on_drop: false }` [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Checking ic0 v0.23.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Compiling generic-array v0.14.7 [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 block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ic_principal v0.1.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking ic-stable-structures v0.6.5 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking candid v0.10.10 [INFO] [stderr] Checking icrc-ledger-types v0.1.6 [INFO] [stderr] Compiling ic-cdk-macros v0.16.0 [INFO] [stderr] Compiling ic-cdk-macros v0.13.3 [INFO] [stderr] Checking ic-cdk v0.16.0 [INFO] [stderr] Checking ic-cdk-timers v0.10.0 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stderr] Checking icrc2 v0.1.0 (/opt/rustwide/workdir/icrc2) [INFO] [stderr] Checking nft v0.1.0 (/opt/rustwide/workdir/nft) [INFO] [stderr] Checking storage v0.1.0 (/opt/rustwide/workdir/storage) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> nft/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 imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> nft/lib.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> nft/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 imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> nft/lib.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> storage/lib.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk::{api::management_canister::http_request::{self, http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod}, init, que... [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 import: `self` [INFO] [stdout] --> storage/lib.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk::{api::management_canister::http_request::{self, http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod}, init, que... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> storage/lib.rs:196:68 [INFO] [stdout] | [INFO] [stdout] 196 | result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 196 - result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] 196 + result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| format!("Minting res: {:?}", r) ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> storage/lib.rs:196:68 [INFO] [stdout] | [INFO] [stdout] 196 | result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 196 - result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] 196 + result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| format!("Minting res: {:?}", r) ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> storage/lib.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | let encoded_image = base64::encode(&image); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> storage/lib.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | let encoded_image = base64::encode(&image); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caller` [INFO] [stdout] --> icrc2/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let caller = ic_cdk::caller().to_string(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match &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] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 40 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 61 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 97 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | let token = unsafe { TOKEN.as_ref().unwrap() }; [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] --> icrc2/lib.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | let token = unsafe { TOKEN.as_ref().unwrap() }; [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: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caller` [INFO] [stdout] --> icrc2/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let caller = ic_cdk::caller().to_string(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match &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] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 40 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 61 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let token = unsafe { TOKEN.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] --> icrc2/lib.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 97 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | let token = unsafe { TOKEN.as_ref().unwrap() }; [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] --> icrc2/lib.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match &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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | let token = unsafe { TOKEN.as_ref().unwrap() }; [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] --> nft/lib.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let nfts = NFTS_TEMPLATES.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] = 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] --> nft/lib.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let ownership = OWNERSHIP.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] --> nft/lib.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | let ownership_map = OWNERSHIP.as_mut().ok_or("Ownership map is uninitialized")?; [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] --> nft/lib.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | / OWNERSHIP [INFO] [stdout] 102 | | .as_ref() [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] --> nft/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let ownership_map = OWNERSHIP.as_ref(); [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] --> nft/lib.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | let nft_templates = NFTS_TEMPLATES.as_ref(); [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] --> nft/lib.rs:141:34 [INFO] [stdout] | [INFO] [stdout] 141 | if let Some(templates) = NFTS_TEMPLATES.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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | match &NFTS_TEMPLATES { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const NFTS_TEMPLATES { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let nfts = NFTS_TEMPLATES.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] = 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] --> nft/lib.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let ownership = OWNERSHIP.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] --> nft/lib.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | let ownership_map = OWNERSHIP.as_mut().ok_or("Ownership map is uninitialized")?; [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] --> nft/lib.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | / OWNERSHIP [INFO] [stdout] 102 | | .as_ref() [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] --> nft/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let ownership_map = OWNERSHIP.as_ref(); [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] --> nft/lib.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | let nft_templates = NFTS_TEMPLATES.as_ref(); [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] --> nft/lib.rs:141:34 [INFO] [stdout] | [INFO] [stdout] 141 | if let Some(templates) = NFTS_TEMPLATES.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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | match &NFTS_TEMPLATES { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const NFTS_TEMPLATES { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> storage/lib.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RecycleData { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(location: String, comment: String, image: Vec, principal_id: String, created_at: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIP20_CANISTER_ID` is never used [INFO] [stdout] --> storage/lib.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const DIP20_CANISTER_ID: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_API_KEY` is never used [INFO] [stdout] --> storage/lib.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const GEMINI_API_KEY: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reward_user` is never used [INFO] [stdout] --> storage/lib.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | async fn reward_user(user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_image_with_gemini` is never used [INFO] [stdout] --> storage/lib.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn validate_image_with_gemini( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> storage/lib.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RecycleData { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(location: String, comment: String, image: Vec, principal_id: String, created_at: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIP20_CANISTER_ID` is never used [INFO] [stdout] --> storage/lib.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const DIP20_CANISTER_ID: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_API_KEY` is never used [INFO] [stdout] --> storage/lib.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const GEMINI_API_KEY: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reward_user` is never used [INFO] [stdout] --> storage/lib.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | async fn reward_user(user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_image_with_gemini` is never used [INFO] [stdout] --> storage/lib.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn validate_image_with_gemini( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let users = USERS.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] = 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] --> storage/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | USERS.as_ref().unwrap().get(&principal_id).cloned() [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] --> storage/lib.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | BRANDS.as_ref().unwrap().get(&brand_id) [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] --> storage/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | let brands = BRANDS.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] --> storage/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | BRANDS.as_ref().unwrap() [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] --> storage/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let users = USERS.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] = 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] --> storage/lib.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let brands = BRANDS.as_ref().unwrap(); [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] --> storage/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | USERS.as_ref().unwrap().get(&principal_id).cloned() [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] --> storage/lib.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let users = USERS.as_ref().unwrap(); [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] --> storage/lib.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | BRANDS.as_ref().unwrap().get(&brand_id) [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] --> storage/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | let brands = BRANDS.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] --> storage/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | BRANDS.as_ref().unwrap() [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] --> storage/lib.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(users) = USERS.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] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let brands = BRANDS.as_ref().unwrap(); [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] --> storage/lib.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let users = USERS.as_ref().unwrap(); [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] --> storage/lib.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(users) = USERS.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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.05s [INFO] running `Command { std: "docker" "inspect" "b8b674bc17e1cf231211eec03ec416d211445caf45384215b019458bd297c14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8b674bc17e1cf231211eec03ec416d211445caf45384215b019458bd297c14c", kill_on_drop: false }` [INFO] [stdout] b8b674bc17e1cf231211eec03ec416d211445caf45384215b019458bd297c14c