[INFO] cloning repository https://github.com/apemon/ink-amm-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/apemon/ink-amm-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapemon%2Fink-amm-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapemon%2Fink-amm-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca49be70267b8a7cf81351ee315aee75e621a234 [INFO] checking apemon/ink-amm-demo/ca49be70267b8a7cf81351ee315aee75e621a234 against try#6d565b71a096078f59574161a2a382ec4a1eb751 for pr-132325 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapemon%2Fink-amm-demo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/apemon/ink-amm-demo on toolchain 6d565b71a096078f59574161a2a382ec4a1eb751 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6d565b71a096078f59574161a2a382ec4a1eb751" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/apemon/ink-amm-demo [INFO] finished tweaking git repo https://github.com/apemon/ink-amm-demo [INFO] tweaked toml for git repo https://github.com/apemon/ink-amm-demo written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/apemon/ink-amm-demo 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" "+6d565b71a096078f59574161a2a382ec4a1eb751" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking apemon/ink-amm-demo/ca49be70267b8a7cf81351ee315aee75e621a234 against try#6d565b71a096078f59574161a2a382ec4a1eb751 for pr-132325 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapemon%2Fink-amm-demo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/apemon/ink-amm-demo on toolchain 6d565b71a096078f59574161a2a382ec4a1eb751 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6d565b71a096078f59574161a2a382ec4a1eb751" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/apemon/ink-amm-demo [INFO] finished tweaking git repo https://github.com/apemon/ink-amm-demo [INFO] tweaked toml for git repo https://github.com/apemon/ink-amm-demo written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/apemon/ink-amm-demo 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" "+6d565b71a096078f59574161a2a382ec4a1eb751" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ink_prelude v3.0.0 [INFO] [stderr] Downloaded ink_storage_derive v3.0.0 [INFO] [stderr] Downloaded ink_metadata v3.0.0 [INFO] [stderr] Downloaded ink_env v3.0.0 [INFO] [stderr] Downloaded ink_allocator v3.0.0 [INFO] [stderr] Downloaded ink_primitives v3.0.0 [INFO] [stderr] Downloaded scale-info-derive v2.0.0 [INFO] [stderr] Downloaded ink_lang_macro v3.0.0 [INFO] [stderr] Downloaded scale-info v2.0.1 [INFO] [stderr] Downloaded ink_eth_compatibility v3.0.0 [INFO] [stderr] Downloaded ink_lang v3.0.0 [INFO] [stderr] Downloaded ink_lang_ir v3.0.0 [INFO] [stderr] Downloaded secp256k1 v0.22.1 [INFO] [stderr] Downloaded ink_engine v3.0.0 [INFO] [stderr] Downloaded ink_lang_codegen v3.0.0 [INFO] [stderr] Downloaded array-init v2.0.0 [INFO] [stderr] Downloaded secp256k1-sys v0.5.0 [INFO] [stderr] Downloaded ink_storage v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+6d565b71a096078f59574161a2a382ec4a1eb751" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 506f1005f6efe92e786b38d081370a2fb723262589581dde711192f4b98d03cc [INFO] running `Command { std: "docker" "start" "-a" "506f1005f6efe92e786b38d081370a2fb723262589581dde711192f4b98d03cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "506f1005f6efe92e786b38d081370a2fb723262589581dde711192f4b98d03cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "506f1005f6efe92e786b38d081370a2fb723262589581dde711192f4b98d03cc", kill_on_drop: false }` [INFO] [stdout] 506f1005f6efe92e786b38d081370a2fb723262589581dde711192f4b98d03cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+6d565b71a096078f59574161a2a382ec4a1eb751" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12db3af0609565d6a55ef743628ff0fd8da6af1e4aefbb1b8527978b3585e93c [INFO] running `Command { std: "docker" "start" "-a" "12db3af0609565d6a55ef743628ff0fd8da6af1e4aefbb1b8527978b3585e93c", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking byte-slice-cast v1.2.1 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking wyz v0.5.0 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking ink_prelude v3.0.0 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking ink_allocator v3.0.0 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking array-init v2.0.0 [INFO] [stderr] Checking bitvec v1.0.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling secp256k1-sys v0.5.0 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking libsecp256k1-core v0.3.0 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Compiling blake2 v0.10.4 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking sha3 v0.10.1 [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] Checking secp256k1 v0.22.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling ink_lang_ir v3.0.0 [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 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling parity-scale-codec-derive v3.1.2 [INFO] [stderr] Compiling scale-info-derive v2.0.0 [INFO] [stderr] Compiling parity-scale-codec v3.1.2 [INFO] [stderr] Compiling scale-info v2.0.1 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0 [INFO] [stderr] Compiling ink_primitives v3.0.0 [INFO] [stderr] Compiling ink_lang_macro v3.0.0 [INFO] [stderr] Checking ink_engine v3.0.0 [INFO] [stderr] Checking ink_metadata v3.0.0 [INFO] [stderr] Checking ink_env v3.0.0 [INFO] [stderr] Checking ink_eth_compatibility v3.0.0 [INFO] [stderr] Checking ink_storage v3.0.0 [INFO] [stderr] Checking ink_lang v3.0.0 [INFO] [stderr] Checking erc20 v0.1.0 (/opt/rustwide/workdir/erc20) [INFO] [stdout] warning: unexpected `cfg` condition value: `__ink_dylint_Storage` [INFO] [stdout] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / /// A simple ERC-20 contract. [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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] --> erc20/lib.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | / /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] 70 | | #[ink(constructor)] [INFO] [stdout] 71 | | pub fn new( [INFO] [stdout] 72 | | name: ink_prelude::string::String, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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: unexpected `cfg` condition value: `__ink_dylint_Storage` [INFO] [stdout] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | / /// A simple ERC-20 contract. [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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] --> erc20/lib.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | / /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] 70 | | #[ink(constructor)] [INFO] [stdout] 71 | | pub fn new( [INFO] [stdout] 72 | | name: ink_prelude::string::String, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`SpreadLayout` 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::SpreadLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::SpreadLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::SpreadLayout` (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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`PackedLayout` 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::PackedLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::PackedLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::PackedLayout` (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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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: 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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | // /// A simple ERC-20 contract. [INFO] [stdout] 18 | || #[ink(storage)] [INFO] [stdout] 19 | || #[derive(SpreadAllocate)] [INFO] [stdout] 20 | || pub struct Erc20 { [INFO] [stdout] | ||________________----^ [INFO] [stdout] | | | [INFO] [stdout] | | `Erc20` is not local [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [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] --> erc20/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | / /// A simple ERC-20 contract. [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] Checking pool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`SpreadLayout` 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::SpreadLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::SpreadLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::SpreadLayout` (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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`PackedLayout` 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::PackedLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::PackedLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::PackedLayout` (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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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: 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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | /// A simple ERC-20 contract. [INFO] [stdout] | _____^ [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::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] --> erc20/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | // /// A simple ERC-20 contract. [INFO] [stdout] 18 | || #[ink(storage)] [INFO] [stdout] 19 | || #[derive(SpreadAllocate)] [INFO] [stdout] 20 | || pub struct Erc20 { [INFO] [stdout] | ||________________----^ [INFO] [stdout] | | | [INFO] [stdout] | | `Erc20` is not local [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [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] --> erc20/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 17 | / /// A simple ERC-20 contract. [INFO] [stdout] 18 | | #[ink(storage)] [INFO] [stdout] 19 | | #[derive(SpreadAllocate)] [INFO] [stdout] 20 | | pub struct Erc20 { [INFO] [stdout] ... | [INFO] [stdout] 30 | | minter: AccountId [INFO] [stdout] 31 | | } [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] [stdout] warning: unexpected `cfg` condition value: `__ink_dylint_Storage` [INFO] [stdout] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / /// Defines the storage of your contract. [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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_Storage` [INFO] [stdout] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / /// Defines the storage of your contract. [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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] --> lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | / /// Constructor that initializes the `bool` value to the given `init_value`. [INFO] [stdout] 29 | | #[ink(constructor)] [INFO] [stdout] 30 | | pub fn new( [INFO] [stdout] 31 | | token_0: Erc20Ref, [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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: unexpected `cfg` condition value: `__ink_dylint_Constructor` [INFO] [stdout] --> lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | / /// Constructor that initializes the `bool` value to the given `init_value`. [INFO] [stdout] 29 | | #[ink(constructor)] [INFO] [stdout] 30 | | pub fn new( [INFO] [stdout] 31 | | token_0: Erc20Ref, [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `ink-as-dependency`, `ink_metadata`, `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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`SpreadLayout` 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::SpreadLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::SpreadLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::SpreadLayout` (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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`PackedLayout` 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::PackedLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::PackedLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::PackedLayout` (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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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: 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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`SpreadLayout` 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::SpreadLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::SpreadLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::SpreadLayout` (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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`PackedLayout` 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::PackedLayout` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `::ink_storage::traits::PackedLayout` may come from an old version of the `ink_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::ink_storage::traits::PackedLayout` (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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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: 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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | // /// Defines the storage of your contract. [INFO] [stdout] 17 | || /// Add new fields to the below struct in order [INFO] [stdout] 18 | || /// to add new static storage fields to your contract. [INFO] [stdout] 19 | || #[ink(storage)] [INFO] [stdout] 20 | || pub struct Pool { [INFO] [stdout] | ||________________---^ [INFO] [stdout] | | | [INFO] [stdout] | | `Pool` is not local [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [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] --> lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | / /// Defines the storage of your contract. [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ---------------- `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | /// Defines the storage of your contract. [INFO] [stdout] | _____^ [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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_storage_derive` crate, try updating your dependency with `cargo update -p ink_storage_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 `::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] --> lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | // /// Defines the storage of your contract. [INFO] [stdout] 17 | || /// Add new fields to the below struct in order [INFO] [stdout] 18 | || /// to add new static storage fields to your contract. [INFO] [stdout] 19 | || #[ink(storage)] [INFO] [stdout] 20 | || pub struct Pool { [INFO] [stdout] | ||________________---^ [INFO] [stdout] | | | [INFO] [stdout] | | `Pool` is not local [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [INFO] [stdout] | | - [INFO] [stdout] | | | [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] --> lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `CallBuilder` is not local [INFO] [stdout] ... [INFO] [stdout] 16 | / /// Defines the storage of your contract. [INFO] [stdout] 17 | | /// Add new fields to the below struct in order [INFO] [stdout] 18 | | /// to add new static storage fields to your contract. [INFO] [stdout] 19 | | #[ink(storage)] [INFO] [stdout] ... | [INFO] [stdout] 24 | | lp: Erc20Ref [INFO] [stdout] 25 | | } [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 10.45s [INFO] running `Command { std: "docker" "inspect" "12db3af0609565d6a55ef743628ff0fd8da6af1e4aefbb1b8527978b3585e93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12db3af0609565d6a55ef743628ff0fd8da6af1e4aefbb1b8527978b3585e93c", kill_on_drop: false }` [INFO] [stdout] 12db3af0609565d6a55ef743628ff0fd8da6af1e4aefbb1b8527978b3585e93c