[INFO] cloning repository https://github.com/IKIGUYZ/near-lightbulb-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IKIGUYZ/near-lightbulb-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIKIGUYZ%2Fnear-lightbulb-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIKIGUYZ%2Fnear-lightbulb-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0cea1c8306e4a42f75e8ccc6222fa2f68361bf18 [INFO] checking IKIGUYZ/near-lightbulb-contract against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIKIGUYZ%2Fnear-lightbulb-contract" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IKIGUYZ/near-lightbulb-contract on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IKIGUYZ/near-lightbulb-contract [INFO] finished tweaking git repo https://github.com/IKIGUYZ/near-lightbulb-contract [INFO] tweaked toml for git repo https://github.com/IKIGUYZ/near-lightbulb-contract written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/IKIGUYZ/near-lightbulb-contract 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-1-tc1/source/contracts/lightbulb/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-rpc-error-core v0.1.0 [INFO] [stderr] Downloaded serde_derive v1.0.118 [INFO] [stderr] Downloaded near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Downloaded near-rpc-error-macro v0.1.0 [INFO] [stderr] Downloaded near-sys v0.1.0 [INFO] [stderr] Downloaded near-sdk-macros v3.1.0 [INFO] [stderr] Downloaded near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Downloaded near-sdk-macros v4.0.0-pre.4 [INFO] [stderr] Downloaded near-sdk-core v3.1.0 [INFO] [stderr] Downloaded near-contract-standards v3.2.0 [INFO] [stderr] Downloaded near-sdk v4.0.0-pre.4 [INFO] [stderr] Downloaded syn v1.0.57 [INFO] [stderr] Downloaded rand_pcg v0.3.1 [INFO] [stderr] Downloaded serde v1.0.118 [INFO] [stderr] Downloaded near-sdk v3.1.0 [INFO] [stderr] Downloaded near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Downloaded near-primitives-core v0.4.0 [INFO] [stderr] Downloaded borsh v0.8.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e7d5dbca10fea1ec1f20b3b5556f170498780cb8afbf15b2278780c6368a5ff [INFO] running `Command { std: "docker" "start" "-a" "7e7d5dbca10fea1ec1f20b3b5556f170498780cb8afbf15b2278780c6368a5ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e7d5dbca10fea1ec1f20b3b5556f170498780cb8afbf15b2278780c6368a5ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e7d5dbca10fea1ec1f20b3b5556f170498780cb8afbf15b2278780c6368a5ff", kill_on_drop: false }` [INFO] [stdout] 7e7d5dbca10fea1ec1f20b3b5556f170498780cb8afbf15b2278780c6368a5ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34b7f3457d9e25bee9856259c162eabce61fcd3b8ec4611a8792b6658adbbe52 [INFO] running `Command { std: "docker" "start" "-a" "34b7f3457d9e25bee9856259c162eabce61fcd3b8ec4611a8792b6658adbbe52", 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/contracts/lightbulb/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_json v1.0.73 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Checking ahash v0.4.7 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking near-sys v0.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling near-sdk-core v3.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling near-sdk-macros v3.1.0 [INFO] [stderr] Compiling near-sdk-macros v4.0.0-pre.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Checking borsh v0.8.2 [INFO] [stderr] Checking near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Checking near-primitives-core v0.4.0 [INFO] [stderr] Checking near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Checking near-sdk v3.1.0 [INFO] [stderr] Checking near-sdk v4.0.0-pre.4 [INFO] [stderr] Checking near-contract-standards v3.2.0 [INFO] [stderr] Checking lightbulb-contract v0.1.0 (/opt/rustwide/workdir/contracts/lightbulb) [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> contracts/lightbulb/src/account.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[serde(crate = "near_sdk::serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | #[derive(BorshSerialize, BorshDeserialize, Serialize)] [INFO] [stdout] | --------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> contracts/lightbulb/src/account.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[serde(crate = "near_sdk::serde")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | #[derive(BorshSerialize, BorshDeserialize, Serialize)] [INFO] [stdout] | --------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `U128` is imported redundantly [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use near_sdk::json_types::U128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::*; [INFO] [stdout] | -------- the item `U128` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AccountId` is imported redundantly [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use near_sdk::AccountId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::*; [INFO] [stdout] | -------- the item `AccountId` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::panic`: Use env::panic_str to panic with a message. [INFO] [stdout] --> contracts/lightbulb/src/lib.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | env::panic(b"Contract is not initialized"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `U128` is imported redundantly [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use near_sdk::json_types::U128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::*; [INFO] [stdout] | -------- the item `U128` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AccountId` is imported redundantly [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use near_sdk::AccountId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | use crate::*; [INFO] [stdout] | -------- the item `AccountId` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::panic`: Use env::panic_str to panic with a message. [INFO] [stdout] --> contracts/lightbulb/src/lib.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | env::panic(b"Contract is not initialized"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ft_on_transfer` is never used [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait FungibleTokenReceiver { [INFO] [stdout] | --------------------- method in this trait [INFO] [stdout] 8 | fn ft_on_transfer( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ft_on_transfer` is never used [INFO] [stdout] --> contracts/lightbulb/src/token_receiver.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait FungibleTokenReceiver { [INFO] [stdout] | --------------------- method in this trait [INFO] [stdout] 8 | fn ft_on_transfer( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dola-token v0.1.0 (/opt/rustwide/workdir/contracts/token) [INFO] [stdout] warning: the item `Balance` is imported redundantly [INFO] [stdout] --> contracts/token/src/lib.rs:101:33 [INFO] [stdout] | [INFO] [stdout] 101 | use near_sdk::{testing_env, Balance}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 102 | [INFO] [stdout] 103 | use super::*; [INFO] [stdout] | -------- the item `Balance` is already imported 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] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.12s [INFO] running `Command { std: "docker" "inspect" "34b7f3457d9e25bee9856259c162eabce61fcd3b8ec4611a8792b6658adbbe52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34b7f3457d9e25bee9856259c162eabce61fcd3b8ec4611a8792b6658adbbe52", kill_on_drop: false }` [INFO] [stdout] 34b7f3457d9e25bee9856259c162eabce61fcd3b8ec4611a8792b6658adbbe52