[INFO] cloning repository https://github.com/Leechael/phalaworld-phat-contract-build [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Leechael/phalaworld-phat-contract-build" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeechael%2Fphalaworld-phat-contract-build", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeechael%2Fphalaworld-phat-contract-build'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08bfe709e49a47ca38353d989482ef3b1253525e [INFO] testing Leechael/phalaworld-phat-contract-build/08bfe709e49a47ca38353d989482ef3b1253525e against beta-2024-10-19 for beta-1.83-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeechael%2Fphalaworld-phat-contract-build" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Leechael/phalaworld-phat-contract-build on toolchain beta-2024-10-19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-10-19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Leechael/phalaworld-phat-contract-build [INFO] finished tweaking git repo https://github.com/Leechael/phalaworld-phat-contract-build [INFO] tweaked toml for git repo https://github.com/Leechael/phalaworld-phat-contract-build written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Leechael/phalaworld-phat-contract-build 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" "+beta-2024-10-19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c42689dfe7f169029266e07738ec5411d7052a0027075c79b0002fdfa48e5062 [INFO] running `Command { std: "docker" "start" "-a" "c42689dfe7f169029266e07738ec5411d7052a0027075c79b0002fdfa48e5062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c42689dfe7f169029266e07738ec5411d7052a0027075c79b0002fdfa48e5062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c42689dfe7f169029266e07738ec5411d7052a0027075c79b0002fdfa48e5062", kill_on_drop: false }` [INFO] [stdout] c42689dfe7f169029266e07738ec5411d7052a0027075c79b0002fdfa48e5062 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] feef97bf430ddbd84bc6d73d5c934d10c5c86c65ca2c76791dde04f574a7426b [INFO] running `Command { std: "docker" "start" "-a" "feef97bf430ddbd84bc6d73d5c934d10c5c86c65ca2c76791dde04f574a7426b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling winnow v0.5.4 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling byte-slice-cast v1.2.2 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling ink_prelude v4.2.1 [INFO] [stderr] Compiling xxhash-rust v0.8.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling rustix v0.38.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.5 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling keccak v0.1.4 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Compiling bitflags v2.3.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling ink_allocator v4.2.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling array-init v2.1.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling unzip3 v1.0.0 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling this-crate v0.1.0 [INFO] [stderr] Compiling sp-std v5.0.0 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling hex-literal v0.3.4 [INFO] [stderr] Compiling base58 v0.2.0 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling sp-core-hashing v5.0.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling pink-json v0.4.0 [INFO] [stderr] Compiling pink-json v0.4.0 (https://github.com/Phala-Network/pink-json.git?branch=pink#ff1be4b2) [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling env_logger v0.10.0 [INFO] [stderr] Compiling ink_ir v4.2.1 [INFO] [stderr] Compiling synstructure v0.13.0 [INFO] [stderr] Compiling ss58-registry v1.41.0 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling secp256k1 v0.27.0 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling num_enum_derive v0.6.1 [INFO] [stderr] Compiling pink-extension-macro v0.4.4 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.4 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling scale-info-derive v2.9.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling num_enum v0.6.1 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling scale-encode-derive v0.1.2 [INFO] [stderr] Compiling scale-decode-derive v0.5.0 [INFO] [stderr] Compiling parity-scale-codec v3.6.4 [INFO] [stderr] Compiling scale-info v2.9.0 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Compiling scale-bits v0.3.0 [INFO] [stderr] Compiling scale-encode v0.1.2 [INFO] [stderr] Compiling scale-decode v0.5.0 [INFO] [stderr] Compiling primitive-types v0.12.1 [INFO] [stderr] Compiling primitive-types v0.11.1 [INFO] [stderr] Compiling ink_primitives v4.2.1 [INFO] [stderr] Compiling ink_codegen v4.2.1 [INFO] [stderr] Compiling ink_metadata v4.2.1 [INFO] [stderr] Compiling ink_engine v4.2.1 [INFO] [stderr] Compiling ink_storage_traits v4.2.1 [INFO] [stderr] Compiling ink_env v4.2.1 [INFO] [stderr] Compiling ink_storage v4.2.1 [INFO] [stderr] Compiling ink_macro v4.2.1 [INFO] [stderr] Compiling ink v4.2.1 [INFO] [stderr] Compiling pink-extension v0.4.4 [INFO] [stderr] Compiling pink-subrpc v0.4.2 [INFO] [stderr] Compiling phat_js v0.1.1 [INFO] [stderr] Compiling phalaworld v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ink::env` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ink::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `__ink_dylint_Storage` [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `impl-serde`, `ink-as-dependency`, `scale-info`, and `std` [INFO] [stdout] = help: consider adding `__ink_dylint_Storage` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `__ink_dylint_Constructor` [INFO] [stdout] --> src/lib.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn create(name: String, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `impl-serde`, `ink-as-dependency`, `scale-info`, and `std` [INFO] [stdout] = help: consider adding `__ink_dylint_Constructor` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | -------------------------------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^-- [INFO] [stdout] | | [INFO] [stdout] | `Encode` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::scale::Encode` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::scale::Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `::scale::Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | -------------------------------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^-- [INFO] [stdout] | | [INFO] [stdout] | `EncodeLike` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::scale::Encode` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::scale::Encode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `::scale::Encode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | -------------------------------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^-- [INFO] [stdout] | | [INFO] [stdout] | `Decode` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::scale::Decode` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::scale::Decode` may come from an old version of the `parity_scale_codec_derive` crate, try updating your dependency with `cargo update -p parity_scale_codec_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `::scale::Decode` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | -------------------------------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^-- [INFO] [stdout] | | [INFO] [stdout] | `TypeInfo` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::scale_info::TypeInfo` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::scale_info::TypeInfo` may come from an old version of the `scale_info_derive` crate, try updating your dependency with `cargo update -p scale_info_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `::scale_info::TypeInfo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | -------------------------------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ^-- [INFO] [stdout] | | [INFO] [stdout] | `StorageLayout` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `::ink::storage::traits::StorageLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink::storage::traits::StorageLayout` may come from an old version of the `ink_macro` crate, try updating your dependency with `cargo update -p ink_macro` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `::ink::storage::traits::StorageLayout` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | ---^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | `PhalaWorld` is not local [INFO] [stdout] | `ContractCallBuilder` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[pink::contract(env=PinkEnvironment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 171 | pub struct PhalaWorld { [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | `ContractEnv` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_` and up 2 bodies [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the attribute macro `ink::contract` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.31s [INFO] running `Command { std: "docker" "inspect" "feef97bf430ddbd84bc6d73d5c934d10c5c86c65ca2c76791dde04f574a7426b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "feef97bf430ddbd84bc6d73d5c934d10c5c86c65ca2c76791dde04f574a7426b", kill_on_drop: false }` [INFO] [stdout] feef97bf430ddbd84bc6d73d5c934d10c5c86c65ca2c76791dde04f574a7426b [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cd60b8a20cd08ee7f4a4fc5677ebeb02a5ca6bb03ea5e79fd5322af175d042b [INFO] running `Command { std: "docker" "start" "-a" "6cd60b8a20cd08ee7f4a4fc5677ebeb02a5ca6bb03ea5e79fd5322af175d042b", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling regex-automata v0.3.6 [INFO] [stderr] Compiling pin-project-lite v0.2.11 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.4 [INFO] [stderr] Compiling scale-info-derive v2.9.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling ink_ir v4.2.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling sp-std v4.0.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling zeroize v1.6.0 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling ink_prelude v3.4.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling rustls v0.21.6 [INFO] [stderr] Compiling ref-cast v1.0.19 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling regex v1.9.3 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling env_logger v0.10.0 [INFO] [stderr] Compiling parity-scale-codec v3.6.4 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling ink_lang_ir v3.4.0 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling ref-cast-impl v1.0.19 [INFO] [stderr] Compiling scale-decode-derive v0.5.0 [INFO] [stderr] Compiling scale-encode-derive v0.1.2 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling scale-info v2.9.0 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling parity-wasm v0.42.2 [INFO] [stderr] error: could not compile `tokio` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/beta-2024-10-19-x86_64-unknown-linux-gnu/bin/rustc --crate-name tokio --edition=2021 /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bytes"' --cfg 'feature="default"' --cfg 'feature="io-util"' --cfg 'feature="libc"' --cfg 'feature="mio"' --cfg 'feature="net"' --cfg 'feature="num_cpus"' --cfg 'feature="rt"' --cfg 'feature="rt-multi-thread"' --cfg 'feature="socket2"' --cfg 'feature="sync"' --cfg 'feature="time"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bytes", "default", "fs", "full", "io-std", "io-util", "libc", "macros", "mio", "net", "num_cpus", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "stats", "sync", "test-util", "time", "tokio-macros", "tracing", "windows-sys"))' -C metadata=4dc7bee0ebe80cc9 -C extra-filename=-4dc7bee0ebe80cc9 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern bytes=/opt/rustwide/target/debug/deps/libbytes-8217216c646d0e94.rmeta --extern libc=/opt/rustwide/target/debug/deps/liblibc-4b0b24147de68dac.rmeta --extern mio=/opt/rustwide/target/debug/deps/libmio-fb4e4984663c3bb8.rmeta --extern num_cpus=/opt/rustwide/target/debug/deps/libnum_cpus-99da39e1ff91ba70.rmeta --extern pin_project_lite=/opt/rustwide/target/debug/deps/libpin_project_lite-086e688e1e8d75b3.rmeta --extern socket2=/opt/rustwide/target/debug/deps/libsocket2-614183f725d8ad32.rmeta --cap-lints allow --cap-lints=warn` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "6cd60b8a20cd08ee7f4a4fc5677ebeb02a5ca6bb03ea5e79fd5322af175d042b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cd60b8a20cd08ee7f4a4fc5677ebeb02a5ca6bb03ea5e79fd5322af175d042b", kill_on_drop: false }` [INFO] [stdout] 6cd60b8a20cd08ee7f4a4fc5677ebeb02a5ca6bb03ea5e79fd5322af175d042b