[INFO] fetching crate erc721 3.0.0... [INFO] checking erc721-3.0.0 against master#38352b01ae4af9300be03b805d6db68c45e51068 for pr-129864 [INFO] extracting crate erc721 3.0.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate erc721 3.0.0 on toolchain 38352b01ae4af9300be03b805d6db68c45e51068 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate erc721 3.0.0 [INFO] finished tweaking crates.io crate erc721 3.0.0 [INFO] tweaked toml for crates.io crate erc721 3.0.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 80 packages to latest compatible versions [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding impl-serde v0.3.2 (available: v0.5.0) [INFO] [stderr] Adding ink_allocator v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_engine v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_env v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_metadata v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_prelude v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_primitives v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding ink_storage v3.4.0 (available: v5.0.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.13.0) [INFO] [stderr] Adding radium v0.7.0 (available: v1.1.0) [INFO] [stderr] Adding secp256k1 v0.24.3 (available: v0.29.1) [INFO] [stderr] Adding secp256k1-sys v0.6.1 (available: v0.10.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding synstructure v0.12.6 (available: v0.13.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding wyz v0.5.1 (available: v0.6.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ink_storage v3.4.0 [INFO] [stderr] Downloaded ink_prelude v3.4.0 [INFO] [stderr] Downloaded ink_primitives v3.4.0 [INFO] [stderr] Downloaded rlibc v1.0.0 [INFO] [stderr] Downloaded ink_metadata v3.4.0 [INFO] [stderr] Downloaded ink_engine v3.4.0 [INFO] [stderr] Downloaded ink_env v3.4.0 [INFO] [stderr] Downloaded ink_lang_codegen v3.4.0 [INFO] [stderr] Downloaded ink_allocator v3.4.0 [INFO] [stderr] Downloaded ink_lang v3.4.0 [INFO] [stderr] Downloaded ink_lang_macro v3.4.0 [INFO] [stderr] Downloaded ink_lang_ir v3.4.0 [INFO] [stderr] Downloaded ink_storage_derive v3.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24d10c421dc268228a7fab8b9aa3d01ae607d25f6065a2d34a83202b96b06f30 [INFO] running `Command { std: "docker" "start" "-a" "24d10c421dc268228a7fab8b9aa3d01ae607d25f6065a2d34a83202b96b06f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24d10c421dc268228a7fab8b9aa3d01ae607d25f6065a2d34a83202b96b06f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24d10c421dc268228a7fab8b9aa3d01ae607d25f6065a2d34a83202b96b06f30", kill_on_drop: false }` [INFO] [stdout] 24d10c421dc268228a7fab8b9aa3d01ae607d25f6065a2d34a83202b96b06f30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+38352b01ae4af9300be03b805d6db68c45e51068" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eedaac2f81bab28dc78dfc4eaad4b6c06cb74275bd15ceac3fc7d79f89ea2702 [INFO] running `Command { std: "docker" "start" "-a" "eedaac2f81bab28dc78dfc4eaad4b6c06cb74275bd15ceac3fc7d79f89ea2702", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Checking ink_prelude v3.4.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking ink_allocator v3.4.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking array-init v2.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling ink_lang_ir v3.4.0 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.12 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling scale-info-derive v2.11.3 [INFO] [stderr] Compiling ink_storage_derive v3.4.0 [INFO] [stderr] Compiling parity-scale-codec v3.6.12 [INFO] [stderr] Compiling scale-info v2.11.3 [INFO] [stderr] Compiling ink_lang_codegen v3.4.0 [INFO] [stderr] Compiling ink_primitives v3.4.0 [INFO] [stderr] Checking ink_engine v3.4.0 [INFO] [stderr] Checking ink_metadata v3.4.0 [INFO] [stderr] Compiling ink_lang_macro v3.4.0 [INFO] [stderr] Checking ink_env v3.4.0 [INFO] [stderr] Checking ink_storage v3.4.0 [INFO] [stderr] Checking ink_lang v3.4.0 [INFO] [stderr] Checking erc721 v3.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `__ink_dylint_Storage` [INFO] [stdout] --> lib.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / #[derive(Default, SpreadAllocate)] [INFO] [stdout] 72 | | pub struct Erc721 { [INFO] [stdout] 73 | | /// Mapping from token to owner. [INFO] [stdout] 74 | | token_owner: Mapping, [INFO] [stdout] ... | [INFO] [stdout] 80 | | operator_approvals: Mapping<(AccountId, AccountId), ()>, [INFO] [stdout] 81 | | } [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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | / /// Creates a new ERC-721 token contract. [INFO] [stdout] 130 | | #[ink(constructor)] [INFO] [stdout] 131 | | pub fn new() -> Self { [INFO] [stdout] 132 | | // This call is required in order to correctly initialize the [INFO] [stdout] 133 | | // `Mapping`s of our contract. [INFO] [stdout] 134 | | ink_lang::utils::initialize_contract(|_| {}) [INFO] [stdout] 135 | | } [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] --> lib.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / #[derive(Default, SpreadAllocate)] [INFO] [stdout] 72 | | pub struct Erc721 { [INFO] [stdout] 73 | | /// Mapping from token to owner. [INFO] [stdout] 74 | | token_owner: Mapping, [INFO] [stdout] ... | [INFO] [stdout] 80 | | operator_approvals: Mapping<(AccountId, AccountId), ()>, [INFO] [stdout] 81 | | } [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:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | / /// Creates a new ERC-721 token contract. [INFO] [stdout] 130 | | #[ink(constructor)] [INFO] [stdout] 131 | | pub fn new() -> Self { [INFO] [stdout] 132 | | // This call is required in order to correctly initialize the [INFO] [stdout] 133 | | // `Mapping`s of our contract. [INFO] [stdout] 134 | | ink_lang::utils::initialize_contract(|_| {}) [INFO] [stdout] 135 | | } [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:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | // #[derive(Default, SpreadAllocate)] [INFO] [stdout] 72 | || pub struct Erc721 { [INFO] [stdout] | ||________________-----^ [INFO] [stdout] | | | [INFO] [stdout] | | `Erc721` is not local [INFO] [stdout] 73 | | /// Mapping from token to owner. [INFO] [stdout] 74 | | token_owner: Mapping, [INFO] [stdout] ... | [INFO] [stdout] 80 | | operator_approvals: Mapping<(AccountId, AccountId), ()>, [INFO] [stdout] 81 | | } [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | // #[derive(Default, SpreadAllocate)] [INFO] [stdout] 72 | || pub struct Erc721 { [INFO] [stdout] | ||________________-----^ [INFO] [stdout] | | | [INFO] [stdout] | | `Erc721` is not local [INFO] [stdout] 73 | | /// Mapping from token to owner. [INFO] [stdout] 74 | | token_owner: Mapping, [INFO] [stdout] ... | [INFO] [stdout] 80 | | operator_approvals: Mapping<(AccountId, AccountId), ()>, [INFO] [stdout] 81 | | } [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.82s [INFO] running `Command { std: "docker" "inspect" "eedaac2f81bab28dc78dfc4eaad4b6c06cb74275bd15ceac3fc7d79f89ea2702", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eedaac2f81bab28dc78dfc4eaad4b6c06cb74275bd15ceac3fc7d79f89ea2702", kill_on_drop: false }` [INFO] [stdout] eedaac2f81bab28dc78dfc4eaad4b6c06cb74275bd15ceac3fc7d79f89ea2702