[INFO] cloning repository https://github.com/Luan1981/substrate-buoi-4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Luan1981/substrate-buoi-4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuan1981%2Fsubstrate-buoi-4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuan1981%2Fsubstrate-buoi-4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d5a5a185bfdfa14c3d6ae992828fcaf1d57cc28 [INFO] testing Luan1981/substrate-buoi-4 against master#ff2c56344c764af598ad33027e9c7a48881808ef for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuan1981%2Fsubstrate-buoi-4" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luan1981/substrate-buoi-4 on toolchain ff2c56344c764af598ad33027e9c7a48881808ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Luan1981/substrate-buoi-4 [INFO] finished tweaking git repo https://github.com/Luan1981/substrate-buoi-4 [INFO] tweaked toml for git repo https://github.com/Luan1981/substrate-buoi-4 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Luan1981/substrate-buoi-4 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" "+ff2c56344c764af598ad33027e9c7a48881808ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing Luan1981/substrate-buoi-4 against try#5e4273472e1b2f223618a9b3def795f6224f241d for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuan1981%2Fsubstrate-buoi-4" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luan1981/substrate-buoi-4 on toolchain 5e4273472e1b2f223618a9b3def795f6224f241d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Luan1981/substrate-buoi-4 [INFO] finished tweaking git repo https://github.com/Luan1981/substrate-buoi-4 [INFO] tweaked toml for git repo https://github.com/Luan1981/substrate-buoi-4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Luan1981/substrate-buoi-4 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" "+5e4273472e1b2f223618a9b3def795f6224f241d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ink_eth_compatibility v3.0.0-rc9 [INFO] [stderr] Downloaded ink_env v3.0.0-rc9 [INFO] [stderr] Downloaded ink_allocator v3.0.0-rc9 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.0.0 [INFO] [stderr] Downloaded ink_primitives v3.0.0-rc9 [INFO] [stderr] Downloaded ink_lang_codegen v3.0.0-rc9 [INFO] [stderr] Downloaded parity-scale-codec v3.0.0 [INFO] [stderr] Downloaded ink_lang_macro v3.0.0-rc9 [INFO] [stderr] Downloaded ink_prelude v3.0.0-rc9 [INFO] [stderr] Downloaded ink_metadata v3.0.0-rc9 [INFO] [stderr] Downloaded ink_storage_derive v3.0.0-rc9 [INFO] [stderr] Downloaded ink_lang_ir v3.0.0-rc9 [INFO] [stderr] Downloaded ink_storage v3.0.0-rc9 [INFO] [stderr] Downloaded ink_lang v3.0.0-rc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 541e6f5141ec793382832b01560b81d16522bbc37180f347fb8ec8538009da3e [INFO] running `Command { std: "docker" "start" "-a" "541e6f5141ec793382832b01560b81d16522bbc37180f347fb8ec8538009da3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "541e6f5141ec793382832b01560b81d16522bbc37180f347fb8ec8538009da3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "541e6f5141ec793382832b01560b81d16522bbc37180f347fb8ec8538009da3e", kill_on_drop: false }` [INFO] [stdout] 541e6f5141ec793382832b01560b81d16522bbc37180f347fb8ec8538009da3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1452e164e531af26de2bcb99ade2d35fdea72deea5fce2516ebfe6f88f4302c4 [INFO] running `Command { std: "docker" "start" "-a" "1452e164e531af26de2bcb99ade2d35fdea72deea5fce2516ebfe6f88f4302c4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling wyz v0.5.0 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling byte-slice-cast v1.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc9 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling ink_allocator v3.0.0-rc9 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling array-init v2.0.0 [INFO] [stderr] Compiling bitvec v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling blake2 v0.10.4 [INFO] [stderr] Compiling sha3 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling secp256k1 v0.21.3 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling ink_lang_ir v3.0.0-rc9 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling ink_storage_derive v3.0.0-rc9 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling parity-scale-codec-derive v3.0.0 [INFO] [stderr] Compiling scale-info-derive v2.0.0 [INFO] [stderr] Compiling parity-scale-codec v3.0.0 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0-rc9 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc9 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc9 [INFO] [stderr] Compiling scale-info v2.0.1 [INFO] [stderr] Compiling ink_metadata v3.0.0-rc9 [INFO] [stderr] Compiling ink_env v3.0.0-rc9 [INFO] [stderr] Compiling ink_storage v3.0.0-rc9 [INFO] [stderr] Compiling ink_eth_compatibility v3.0.0-rc9 [INFO] [stderr] Compiling ink_lang v3.0.0-rc9 [INFO] [stderr] Compiling nft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0624]: associated function `new` is private [INFO] [stdout] --> lib.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | id_to_owner: ink_storage::Mapping::new(), [INFO] [stdout] | ^^^ private associated function [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | fn new(offset_key: Key) -> Self { [INFO] [stdout] | ------------------------------- private associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> lib.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | id_to_owner: ink_storage::Mapping::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `ink_primitives::Key` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | fn new(offset_key: Key) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 22 | id_to_owner: ink_storage::Mapping::new(/* ink_primitives::Key */), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `new` is private [INFO] [stdout] --> lib.rs:23:61 [INFO] [stdout] | [INFO] [stdout] 23 | owner_to_token_count: ink_storage::Mapping::new(), [INFO] [stdout] | ^^^ private associated function [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | fn new(offset_key: Key) -> Self { [INFO] [stdout] | ------------------------------- private associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> lib.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | owner_to_token_count: ink_storage::Mapping::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `ink_primitives::Key` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | fn new(offset_key: Key) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 23 | owner_to_token_count: ink_storage::Mapping::new(/* ink_primitives::Key */), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | self.id_to_owner.insert(token_id, receiver); [INFO] [stdout] | ------ ^^^^^^^^ expected `&_`, found `AccountId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ink_env::AccountId` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn insert(&mut self, key: Q, value: &R) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 29 | self.id_to_owner.insert(token_id, &receiver); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:32:60 [INFO] [stdout] | [INFO] [stdout] 32 | self.owner_to_token_count.insert(receiver, n + 1); [INFO] [stdout] | ------ ^^^^^ expected `&_`, found `u64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `u64` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn insert(&mut self, key: Q, value: &R) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 32 | self.owner_to_token_count.insert(receiver, &(n + 1)); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:34:60 [INFO] [stdout] | [INFO] [stdout] 34 | self.owner_to_token_count.insert(receiver, 1); [INFO] [stdout] | ------ ^ expected `&_`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `{integer}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn insert(&mut self, key: Q, value: &R) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 34 | self.owner_to_token_count.insert(receiver, &1); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | self.id_to_owner.insert(token_id, to); [INFO] [stdout] | ------ ^^ expected `&_`, found `AccountId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `ink_env::AccountId` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ink_storage-3.0.0-rc9/src/lazy/mapping.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn insert(&mut self, key: Q, value: &R) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 57 | self.id_to_owner.insert(token_id, &to); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:59:84 [INFO] [stdout] | [INFO] [stdout] 59 | let from_owner_count = *self.owner_to_token_count.get(&from).unwrap_or(&0); [INFO] [stdout] | --------- ^^ expected `u64`, found `&{integer}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `&{integer}` due to the type of the argument passed [INFO] [stdout] --> lib.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | let from_owner_count = *self.owner_to_token_count.get(&from).unwrap_or(&0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `unwrap_or` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/option.rs:951:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 59 - let from_owner_count = *self.owner_to_token_count.get(&from).unwrap_or(&0); [INFO] [stdout] 59 + let from_owner_count = *self.owner_to_token_count.get(&from).unwrap_or(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `u64` cannot be dereferenced [INFO] [stdout] --> lib.rs:59:36 [INFO] [stdout] | [INFO] [stdout] 59 | let from_owner_count = *self.owner_to_token_count.get(&from).unwrap_or(&0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:60:80 [INFO] [stdout] | [INFO] [stdout] 60 | let to_owner_count = *self.owner_to_token_count.get(&to).unwrap_or(&0); [INFO] [stdout] | --------- ^^ expected `u64`, found `&{integer}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `&{integer}` due to the type of the argument passed [INFO] [stdout] --> lib.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | let to_owner_count = *self.owner_to_token_count.get(&to).unwrap_or(&0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `unwrap_or` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/option.rs:951:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 60 - let to_owner_count = *self.owner_to_token_count.get(&to).unwrap_or(&0); [INFO] [stdout] 60 + let to_owner_count = *self.owner_to_token_count.get(&to).unwrap_or(0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `u64` cannot be dereferenced [INFO] [stdout] --> lib.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 60 | let to_owner_count = *self.owner_to_token_count.get(&to).unwrap_or(&0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `u64` cannot be dereferenced [INFO] [stdout] --> lib.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | return *number.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lib.rs:42:47 [INFO] [stdout] | [INFO] [stdout] 42 | Some(acc) => return if acc != account { [INFO] [stdout] | --- ^^^^^^^ expected `AccountId`, found `&AccountId` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `ink_env::AccountId` [INFO] [stdout] | [INFO] [stdout] help: consider dereferencing the borrow [INFO] [stdout] | [INFO] [stdout] 42 | Some(acc) => return if acc != *account { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0614, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nft` (lib) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "1452e164e531af26de2bcb99ade2d35fdea72deea5fce2516ebfe6f88f4302c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1452e164e531af26de2bcb99ade2d35fdea72deea5fce2516ebfe6f88f4302c4", kill_on_drop: false }` [INFO] [stdout] 1452e164e531af26de2bcb99ade2d35fdea72deea5fce2516ebfe6f88f4302c4