[INFO] cloning repository https://github.com/gigaverselabs/giga721 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gigaverselabs/giga721" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 61799bba26ba82e3a6972024325bf46e3d55d825 [INFO] checking gigaverselabs/giga721 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gigaverselabs/giga721 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gigaverselabs/giga721 [INFO] finished tweaking git repo https://github.com/gigaverselabs/giga721 [INFO] tweaked toml for git repo https://github.com/gigaverselabs/giga721 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gigaverselabs/giga721 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc1/source/giga721/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ic-types v0.1.5 [INFO] [stderr] Downloaded serde_tokenstream v0.1.2 [INFO] [stderr] Downloaded candid v0.7.8 [INFO] [stderr] Downloaded ic-cdk v0.3.2 [INFO] [stderr] Downloaded ic-types v0.2.2 [INFO] [stderr] Downloaded lalrpop-util v0.19.6 [INFO] [stderr] Downloaded lalrpop v0.19.6 [INFO] [stderr] Downloaded ic-cdk-macros v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 525884feb964fa496bcadd730d28391e35b1eab3e7c529f67efb827f5e5ef0d7 [INFO] running `Command { std: "docker" "start" "-a" "525884feb964fa496bcadd730d28391e35b1eab3e7c529f67efb827f5e5ef0d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "525884feb964fa496bcadd730d28391e35b1eab3e7c529f67efb827f5e5ef0d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "525884feb964fa496bcadd730d28391e35b1eab3e7c529f67efb827f5e5ef0d7", kill_on_drop: false }` [INFO] [stdout] 525884feb964fa496bcadd730d28391e35b1eab3e7c529f67efb827f5e5ef0d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a89f80f7ad6d0f58ba1c898c75ed151fe825beccf19c90325a8cecae2efe63a [INFO] running `Command { std: "docker" "start" "-a" "9a89f80f7ad6d0f58ba1c898c75ed151fe825beccf19c90325a8cecae2efe63a", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/giga721/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.78 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling lalrpop-util v0.19.6 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Compiling lalrpop v0.19.6 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling which v4.2.2 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling fastrand v1.6.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking intmap v0.7.1 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.5.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.0 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking prost-types v0.9.0 [INFO] [stderr] Compiling ledger_proxy v0.1.0 (/opt/rustwide/workdir/ledger_proxy) [INFO] [stderr] Compiling candid v0.7.8 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking serde_with v1.10.0 [INFO] [stderr] Checking ic-types v0.2.2 [INFO] [stderr] Checking ic-types v0.1.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_tokenstream v0.1.2 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling num_enum_derive v0.5.4 [INFO] [stderr] Compiling num_enum v0.5.4 [INFO] [stderr] Checking ic-cdk v0.3.2 [INFO] [stderr] Compiling ic-cdk-macros v0.3.2 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: the item `AsRef` is imported redundantly [INFO] [stdout] --> common/src/rc_bytes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsRef` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AsRef` is imported redundantly [INFO] [stdout] --> common/src/rc_bytes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::AsRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `AsRef` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking giga721 v0.1.0 (/opt/rustwide/workdir/giga721) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> giga721/src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trap` [INFO] [stdout] --> giga721/src/storage.rs:19:75 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::testing::{stable_grow, stable_read, stable_size, stable_write, trap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `not_paused` [INFO] [stdout] --> giga721/src/ledger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::guards::{owner_guard, not_paused}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SendArgs` [INFO] [stdout] --> giga721/src/marketplace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{ SendArgs, TransactionNotification, ICPTs, TransactionResponse }; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `call_send_dfx` [INFO] [stdout] --> giga721/src/marketplace.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::testing::{call_send_dfx}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> giga721/src/system.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `not_paused` [INFO] [stdout] --> giga721/src/api.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::guards::{owner_guard, not_paused}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenOwner` [INFO] [stdout] --> giga721/src/mint.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::{Token, TokenOwner}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::storage::STORAGE` [INFO] [stdout] --> giga721/src/http.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::storage::STORAGE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::CandidType` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::CandidType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::types::Type` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use candid::types::Type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> ledger_proxy/src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::trap` [INFO] [stdout] --> ledger_proxy/src/storage.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use ic_cdk::api::trap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> ledger_proxy/src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use state::{State, STATE}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> giga721/src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::api::trap` [INFO] [stdout] --> giga721/src/storage.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use ic_cdk::api::trap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `not_paused` [INFO] [stdout] --> giga721/src/ledger.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::guards::{owner_guard, not_paused}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ICPTs`, `SendArgs` [INFO] [stdout] --> giga721/src/marketplace.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{ SendArgs, TransactionNotification, ICPTs, TransactionResponse }; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common::call_send_dfx` [INFO] [stdout] --> giga721/src/marketplace.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use common::call_send_dfx; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> giga721/src/system.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `not_paused` [INFO] [stdout] --> giga721/src/api.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::guards::{owner_guard, not_paused}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenOwner` [INFO] [stdout] --> giga721/src/mint.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::{Token, TokenOwner}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::storage::STORAGE` [INFO] [stdout] --> giga721/src/http.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::storage::STORAGE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::testing` [INFO] [stdout] --> ledger_proxy/src/storage.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::testing::{stable_grow, stable_read, stable_size, stable_write, trap}; [INFO] [stdout] | ^^^^^^^ could not find `testing` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::testing` [INFO] [stdout] --> ledger_proxy/src/storage.rs:338:16 [INFO] [stdout] | [INFO] [stdout] 338 | use crate::testing::get_asset; [INFO] [stdout] | ^^^^^^^ could not find `testing` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::CandidType` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::CandidType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::types::Type` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use candid::types::Type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::print` [INFO] [stdout] --> ledger_proxy/src/storage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::print; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> ledger_proxy/src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use state::{State, STATE}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::types::Compound` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use candid::types::Compound; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `burned_id` [INFO] [stdout] --> giga721/src/token.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let burned_id = state.burn(prin, minted_id); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_burned_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> giga721/src/marketplace.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let args = TransactionNotification { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> giga721/src/system.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let st = storage.borrow_mut(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trap` is never used [INFO] [stdout] --> giga721/src/testing.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn trap(data: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_send_dfx` is never used [INFO] [stdout] --> giga721/src/testing.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn call_send_dfx(_canister: Principal, args: &SendArgs) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `stable_write`, `write_u32`, `write_str`, `write_bytes`, `store_asset`, and `get_asset` are never used [INFO] [stdout] --> ledger_proxy/src/storage.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl StableStorage { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | fn stable_write(&mut self, offset: u32, buf: &[u8]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn write_u32(&mut self, offset: u32, data: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn write_str(&mut self, offset: u32, data: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn write_bytes(&mut self, offset: u32, data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn store_asset(&mut self, asset: &Asset) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn get_asset(&mut self, name: &str) -> Result<(Vec, RcBytes), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::types::Compound` [INFO] [stdout] --> ledger_proxy/src/int_set.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use candid::types::Compound; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_asset` is never used [INFO] [stdout] --> giga721/src/storage.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl StableStorage { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn get_asset(&mut self, name: &str) -> Result<(Vec, RcBytes), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ledger_proxy/src/state.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let mut state = State::default(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ledger_proxy` (lib test) due to 3 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9a89f80f7ad6d0f58ba1c898c75ed151fe825beccf19c90325a8cecae2efe63a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a89f80f7ad6d0f58ba1c898c75ed151fe825beccf19c90325a8cecae2efe63a", kill_on_drop: false }` [INFO] [stdout] 9a89f80f7ad6d0f58ba1c898c75ed151fe825beccf19c90325a8cecae2efe63a