[INFO] fetching crate ink_lang_macro 3.0.0-rc6... [INFO] testing ink_lang_macro-3.0.0-rc6 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate ink_lang_macro 3.0.0-rc6 into /workspace/builds/worker-97/source [INFO] validating manifest of crates.io crate ink_lang_macro 3.0.0-rc6 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ink_lang_macro 3.0.0-rc6 [INFO] finished tweaking crates.io crate ink_lang_macro 3.0.0-rc6 [INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.0-rc6 written to /workspace/builds/worker-97/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df776bc222fbd55751ac3db88c03b241cd9aa1329824023d3ff0b00a2beccff1 [INFO] running `Command { std: "docker" "start" "-a" "df776bc222fbd55751ac3db88c03b241cd9aa1329824023d3ff0b00a2beccff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df776bc222fbd55751ac3db88c03b241cd9aa1329824023d3ff0b00a2beccff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df776bc222fbd55751ac3db88c03b241cd9aa1329824023d3ff0b00a2beccff1", kill_on_drop: false }` [INFO] [stdout] df776bc222fbd55751ac3db88c03b241cd9aa1329824023d3ff0b00a2beccff1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68aa6b1dada3eb04322f43f8b1e39061163f9fffeb1c76a163d4e54525802302 [INFO] running `Command { std: "docker" "start" "-a" "68aa6b1dada3eb04322f43f8b1e39061163f9fffeb1c76a163d4e54525802302", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling byte-slice-cast v1.2.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc6 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling blake2 v0.9.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling ink_lang_ir v3.0.0-rc6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.1 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling scale-info-derive v1.0.0 [INFO] [stderr] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling scale-info v1.0.0 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0-rc6 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc6 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc6 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.71s [INFO] running `Command { std: "docker" "inspect" "68aa6b1dada3eb04322f43f8b1e39061163f9fffeb1c76a163d4e54525802302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68aa6b1dada3eb04322f43f8b1e39061163f9fffeb1c76a163d4e54525802302", kill_on_drop: false }` [INFO] [stdout] 68aa6b1dada3eb04322f43f8b1e39061163f9fffeb1c76a163d4e54525802302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff8703cd7762adc251ec2200fcccd5e7913051f2a491704b693c81f762f36aea [INFO] running `Command { std: "docker" "start" "-a" "ff8703cd7762adc251ec2200fcccd5e7913051f2a491704b693c81f762f36aea", kill_on_drop: false }` [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc6 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "ff8703cd7762adc251ec2200fcccd5e7913051f2a491704b693c81f762f36aea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff8703cd7762adc251ec2200fcccd5e7913051f2a491704b693c81f762f36aea", kill_on_drop: false }` [INFO] [stdout] ff8703cd7762adc251ec2200fcccd5e7913051f2a491704b693c81f762f36aea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-97/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ad978ec9fd2c10339712ed012cfaf5e5a46c5dd11b913675e0a96b712659333b [INFO] running `Command { std: "docker" "start" "-a" "ad978ec9fd2c10339712ed012cfaf5e5a46c5dd11b913675e0a96b712659333b", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ink_lang_macro-016e607f4ec7ff91) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ink_lang_macro [INFO] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test src/lib.rs - chain_extension (line 744) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 213) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 755) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 597) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 684) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 841) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 818) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 964) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 999) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 305) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 454) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 277) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 552) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 342) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 182) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 229) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 417) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 379) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 619) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 502) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 465) ... FAILED [INFO] [stdout] test src/lib.rs - selector_id (line 60) ... ok [INFO] [stdout] test src/lib.rs - selector_bytes (line 80) ... ok [INFO] [stdout] test src/lib.rs - blake2x256 (line 35) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - chain_extension (line 744) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:746:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::chain_extension` [INFO] [stdout] --> src/lib.rs:747:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::chain_extension] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:750:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[ink(extension = 5, handle_status = false, returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 213) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:216:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl ink_env::Environment for MyEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ink_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:223:27 [INFO] [stdout] | [INFO] [stdout] 12 | type RentFraction = ::ink_env::Perbill; [INFO] [stdout] | ^^^^^^^ could not find `ink_env` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ink_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 13 | type ChainExtension = ::ink_env::NoChainExtension; [INFO] [stdout] | ^^^^^^^ could not find `ink_env` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 755) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:757:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::chain_extension` [INFO] [stdout] --> src/lib.rs:758:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::chain_extension] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:761:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[ink(extension = 5)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:762:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(handle_status = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:763:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[ink(returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:760:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 139) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_storage` [INFO] [stdout] --> src/lib.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ink_storage as storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no external crate `ink_storage` [INFO] [stdout] [INFO] [stdout] warning: type `_unused` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:142:6 [INFO] [stdout] | [INFO] [stdout] 5 | type _unused = [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Unused` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - trait_definition (line 597) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:598:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::trait_definition` [INFO] [stdout] --> src/lib.rs:601:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink::trait_definition] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:604:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:608:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:599:48 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:599:17 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test (line 684) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:685:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 841) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:842:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::chain_extension` [INFO] [stdout] --> src/lib.rs:845:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink::chain_extension] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:903:40 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:909:40 [INFO] [stdout] | [INFO] [stdout] 70 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:924:40 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:933:40 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:854:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[ink(extension = 1, returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:871:7 [INFO] [stdout] | [INFO] [stdout] 32 | #[ink(extension = 2)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:879:7 [INFO] [stdout] | [INFO] [stdout] 40 | #[ink(extension = 3, returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:887:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[ink(extension = 4, returns_result = false, handle_status = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:900:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[ink(extension = 5, handle_status = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:939:6 [INFO] [stdout] | [INFO] [stdout] 100 | impl ink_env::chain_extension::FromStatusCode for ReadWriteErrorCode { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:847:5 [INFO] [stdout] | [INFO] [stdout] 8 | type ErrorCode = ReadWriteErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 818) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:819:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::chain_extension` [INFO] [stdout] --> src/lib.rs:821:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::chain_extension] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyErrorCode` in this scope [INFO] [stdout] --> src/lib.rs:823:22 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = MyErrorCode; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:823:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = MyErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 964) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_env` [INFO] [stdout] --> src/lib.rs:967:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ink_env::{Environment, DefaultEnvironment}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 999) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:1000:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:1004:5 [INFO] [stdout] | [INFO] [stdout] 7 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:1002:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract(env = CustomEnvironment)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::chain_extension` [INFO] [stdout] --> src/lib.rs:1053:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[ink::chain_extension] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:1067:40 [INFO] [stdout] | [INFO] [stdout] 70 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:1073:40 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:1088:40 [INFO] [stdout] | [INFO] [stdout] 91 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `scale_info` [INFO] [stdout] --> src/lib.rs:1097:40 [INFO] [stdout] | [INFO] [stdout] 100 | #[derive(scale::Encode, scale::Decode, scale_info::TypeInfo)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `scale_info` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1006:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1010:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[ink(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1013:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1020:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1027:11 [INFO] [stdout] | [INFO] [stdout] 30 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1038:11 [INFO] [stdout] | [INFO] [stdout] 41 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1045:11 [INFO] [stdout] | [INFO] [stdout] 48 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1056:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[ink(extension = 1, returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1058:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[ink(extension = 2)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1060:7 [INFO] [stdout] | [INFO] [stdout] 63 | #[ink(extension = 3, returns_result = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1062:7 [INFO] [stdout] | [INFO] [stdout] 65 | #[ink(extension = 4, returns_result = false, handle_status = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:1064:7 [INFO] [stdout] | [INFO] [stdout] 67 | #[ink(extension = 5, handle_status = false)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1103:6 [INFO] [stdout] | [INFO] [stdout] 106 | impl ink_env::chain_extension::FromStatusCode for ReadWriteErrorCode { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1115:6 [INFO] [stdout] | [INFO] [stdout] 118 | impl ink_env::Environment for CustomEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1117:41 [INFO] [stdout] | [INFO] [stdout] 120 | ::MAX_EVENT_TOPICS; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1117:10 [INFO] [stdout] | [INFO] [stdout] 120 | ::MAX_EVENT_TOPICS; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1119:54 [INFO] [stdout] | [INFO] [stdout] 122 | type AccountId = ::AccountId; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1119:23 [INFO] [stdout] | [INFO] [stdout] 122 | type AccountId = ::AccountId; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1120:52 [INFO] [stdout] | [INFO] [stdout] 123 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1120:21 [INFO] [stdout] | [INFO] [stdout] 123 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1121:49 [INFO] [stdout] | [INFO] [stdout] 124 | type Hash = ::Hash; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1121:18 [INFO] [stdout] | [INFO] [stdout] 124 | type Hash = ::Hash; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1122:56 [INFO] [stdout] | [INFO] [stdout] 125 | type BlockNumber = ::BlockNumber; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1122:25 [INFO] [stdout] | [INFO] [stdout] 125 | type BlockNumber = ::BlockNumber; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1123:54 [INFO] [stdout] | [INFO] [stdout] 126 | type Timestamp = ::Timestamp; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1123:23 [INFO] [stdout] | [INFO] [stdout] 126 | type Timestamp = ::Timestamp; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1124:57 [INFO] [stdout] | [INFO] [stdout] 127 | type RentFraction = ::RentFraction; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:1124:26 [INFO] [stdout] | [INFO] [stdout] 127 | type RentFraction = ::RentFraction; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:1055:5 [INFO] [stdout] | [INFO] [stdout] 58 | type ErrorCode = ReadWriteErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] = help: add `#![feature(associated_type_defaults)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1126:27 [INFO] [stdout] | [INFO] [stdout] 129 | type ChainExtension = RuntimeReadWrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn RuntimeReadWrite` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 305) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:307:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:309:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:314:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:318:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 454) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:455:1 [INFO] [stdout] | [INFO] [stdout] 3 | ink_env::test::run_test::(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:455:27 [INFO] [stdout] | [INFO] [stdout] 3 | ink_env::test::run_test::(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:456:14 [INFO] [stdout] | [INFO] [stdout] 4 | let caller = ink_env::caller::(); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:456:32 [INFO] [stdout] | [INFO] [stdout] 4 | let caller = ink_env::caller::(); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 277) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:279:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:281:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:286:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:288:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 552) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:553:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:555:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:557:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:564:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:570:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:576:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 342) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:344:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:346:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:351:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:356:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:362:7 [INFO] [stdout] | [INFO] [stdout] 22 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 182) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:184:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract(compile_as_dependency = true)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:186:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:191:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 148) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:150:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract(dynamic_storage_allocator = true)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:152:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:155:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:157:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 229) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:231:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract(env = MyEnvironment)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:246:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:249:7 [INFO] [stdout] | [INFO] [stdout] 22 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:251:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:235:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl ink_env::Environment for MyEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ink_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:242:29 [INFO] [stdout] | [INFO] [stdout] 15 | type ChainExtension = ::ink_env::NoChainExtension; [INFO] [stdout] | ^^^^^^^ could not find `ink_env` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ink_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 16 | type RentFraction = ::ink_env::Perbill; [INFO] [stdout] | ^^^^^^^ could not find `ink_env` in the list of imported crates [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 417) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:419:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:421:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:426:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:427:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[ink(selector = 0xDEADBEEF)] // Works on constructors as well. [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:433:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:434:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[ink(selector = 0xCAFEBABE)] // You can either specify selector out-of-line. [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:440:7 [INFO] [stdout] | [INFO] [stdout] 25 | #[ink(message, selector = 0xFEEDBEEF)] // ... or specify selector inline. [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 379) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:380:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:381:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:383:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:388:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:393:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:394:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[ink(payable)] // You can either specify payable out-of-line. [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:400:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[ink(message, payable)] // ... or specify payable inline. [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - trait_definition (line 619) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:620:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:622:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_lang` [INFO] [stdout] --> src/lib.rs:625:6 [INFO] [stdout] | [INFO] [stdout] 8 | #[ink_lang::trait_definition] [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:628:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:632:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:636:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:643:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:649:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:629:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(initial_supply: Balance) -> Self; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:633:34 [INFO] [stdout] | [INFO] [stdout] 16 | fn total_supply(&self) -> Balance; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:638:23 [INFO] [stdout] | [INFO] [stdout] 21 | total_supply: Balance, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:644:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(initial_supply: Balance) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:650:35 [INFO] [stdout] | [INFO] [stdout] 33 | fn total_supply(&self) -> Balance { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 502) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:503:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:505:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:508:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[ink(event)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:515:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:522:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:533:11 [INFO] [stdout] | [INFO] [stdout] 33 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountId` in this scope [INFO] [stdout] --> src/lib.rs:510:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Transferred { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 10 | from: Option, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountId` in this scope [INFO] [stdout] --> src/lib.rs:511:20 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Transferred { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 10 | from: Option, [INFO] [stdout] 11 | to: Option, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:512:16 [INFO] [stdout] | [INFO] [stdout] 12 | value: Balance, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:517:23 [INFO] [stdout] | [INFO] [stdout] 17 | total_supply: Balance, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:523:36 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(initial_supply: Balance) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:534:39 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn total_supply(&self) -> Balance { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `Erc20` in the current scope [INFO] [stdout] --> src/lib.rs:524:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Erc20 { [INFO] [stdout] | ---------------- function or associated item `env` not found for this [INFO] [stdout] ... [INFO] [stdout] 24 | let caller = Self::env().caller(); [INFO] [stdout] | ^^^ function or associated item not found in `Erc20` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `Erc20` in the current scope [INFO] [stdout] --> src/lib.rs:525:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Erc20 { [INFO] [stdout] | ---------------- function or associated item `env` not found for this [INFO] [stdout] ... [INFO] [stdout] 25 | Self::env().emit_event(Transferred { [INFO] [stdout] | ^^^ function or associated item not found in `Erc20` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 465) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:466:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ink_env` [INFO] [stdout] --> src/lib.rs:470:9 [INFO] [stdout] | [INFO] [stdout] 7 | use ink_env::debug_println; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:468:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:472:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(storage)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:476:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug_println` [INFO] [stdout] --> src/lib.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 16 | debug_println!("thanks for instantiation {:?}", caller); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:483:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[ink(message, payable)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `debug_println` [INFO] [stdout] --> src/lib.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 24 | debug_println!("thanks for the funding of {:?} from {:?}", value, caller); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `Greeter` in the current scope [INFO] [stdout] --> src/lib.rs:478:32 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Greeter; [INFO] [stdout] | ------------------- function or associated item `env` not found for this [INFO] [stdout] ... [INFO] [stdout] 15 | let caller = Self::env().caller(); [INFO] [stdout] | ^^^ function or associated item not found in `Greeter` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `env` found for reference `&Greeter` in the current scope [INFO] [stdout] --> src/lib.rs:485:31 [INFO] [stdout] | [INFO] [stdout] 22 | let caller = self.env().caller(); [INFO] [stdout] | ^^^ method not found in `&Greeter` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `env` found for reference `&Greeter` in the current scope [INFO] [stdout] --> src/lib.rs:486:30 [INFO] [stdout] | [INFO] [stdout] 23 | let value = self.env().transferred_balance(); [INFO] [stdout] | ^^^ method not found in `&Greeter` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - chain_extension (line 744) [INFO] [stdout] src/lib.rs - chain_extension (line 755) [INFO] [stdout] src/lib.rs - chain_extension (line 818) [INFO] [stdout] src/lib.rs - chain_extension (line 841) [INFO] [stdout] src/lib.rs - chain_extension (line 964) [INFO] [stdout] src/lib.rs - chain_extension (line 999) [INFO] [stdout] src/lib.rs - contract (line 139) [INFO] [stdout] src/lib.rs - contract (line 148) [INFO] [stdout] src/lib.rs - contract (line 182) [INFO] [stdout] src/lib.rs - contract (line 213) [INFO] [stdout] src/lib.rs - contract (line 229) [INFO] [stdout] src/lib.rs - contract (line 277) [INFO] [stdout] src/lib.rs - contract (line 305) [INFO] [stdout] src/lib.rs - contract (line 342) [INFO] [stdout] src/lib.rs - contract (line 379) [INFO] [stdout] src/lib.rs - contract (line 417) [INFO] [stdout] src/lib.rs - contract (line 454) [INFO] [stdout] src/lib.rs - contract (line 465) [INFO] [stdout] src/lib.rs - contract (line 502) [INFO] [stdout] src/lib.rs - contract (line 552) [INFO] [stdout] src/lib.rs - test (line 684) [INFO] [stdout] src/lib.rs - trait_definition (line 597) [INFO] [stdout] src/lib.rs - trait_definition (line 619) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ad978ec9fd2c10339712ed012cfaf5e5a46c5dd11b913675e0a96b712659333b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad978ec9fd2c10339712ed012cfaf5e5a46c5dd11b913675e0a96b712659333b", kill_on_drop: false }` [INFO] [stdout] ad978ec9fd2c10339712ed012cfaf5e5a46c5dd11b913675e0a96b712659333b