[INFO] fetching crate ink_lang_macro 3.0.0-rc7... [INFO] testing ink_lang_macro-3.0.0-rc7 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate ink_lang_macro 3.0.0-rc7 into /workspace/builds/worker-80/source [INFO] validating manifest of crates.io crate ink_lang_macro 3.0.0-rc7 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ink_lang_macro 3.0.0-rc7 [INFO] finished tweaking crates.io crate ink_lang_macro 3.0.0-rc7 [INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.0-rc7 written to /workspace/builds/worker-80/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "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-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a61e6aa789ec3496fa25d87ee868c5258898b6a3d2bfb3a2bc7253f61a4dd8c1 [INFO] running `Command { std: "docker" "start" "-a" "a61e6aa789ec3496fa25d87ee868c5258898b6a3d2bfb3a2bc7253f61a4dd8c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a61e6aa789ec3496fa25d87ee868c5258898b6a3d2bfb3a2bc7253f61a4dd8c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a61e6aa789ec3496fa25d87ee868c5258898b6a3d2bfb3a2bc7253f61a4dd8c1", kill_on_drop: false }` [INFO] [stdout] a61e6aa789ec3496fa25d87ee868c5258898b6a3d2bfb3a2bc7253f61a4dd8c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36807dab9dafa2908637d421d4673a1be7d88fb7292cb3a3f8d270239ea60743 [INFO] running `Command { std: "docker" "start" "-a" "36807dab9dafa2908637d421d4673a1be7d88fb7292cb3a3f8d270239ea60743", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [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 byte-slice-cast v1.2.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc7 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.9.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-rc7 [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.17 [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-rc7 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc7 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc7 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 25.79s [INFO] running `Command { std: "docker" "inspect" "36807dab9dafa2908637d421d4673a1be7d88fb7292cb3a3f8d270239ea60743", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36807dab9dafa2908637d421d4673a1be7d88fb7292cb3a3f8d270239ea60743", kill_on_drop: false }` [INFO] [stdout] 36807dab9dafa2908637d421d4673a1be7d88fb7292cb3a3f8d270239ea60743 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01b676ac71e5a6d6332eb9e31ddda1ee1cd77ab103017956f6f6811a9ff8e942 [INFO] running `Command { std: "docker" "start" "-a" "01b676ac71e5a6d6332eb9e31ddda1ee1cd77ab103017956f6f6811a9ff8e942", kill_on_drop: false }` [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc7 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "01b676ac71e5a6d6332eb9e31ddda1ee1cd77ab103017956f6f6811a9ff8e942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01b676ac71e5a6d6332eb9e31ddda1ee1cd77ab103017956f6f6811a9ff8e942", kill_on_drop: false }` [INFO] [stdout] 01b676ac71e5a6d6332eb9e31ddda1ee1cd77ab103017956f6f6811a9ff8e942 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 62f2fabe047dc3deedbf8183009e297a71fe62b7fe8614e2aad60620abaf45f7 [INFO] running `Command { std: "docker" "start" "-a" "62f2fabe047dc3deedbf8183009e297a71fe62b7fe8614e2aad60620abaf45f7", 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] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ink_lang_macro-0cd38586f1900764) [INFO] [stdout] [INFO] [stderr] Doc-tests ink_lang_macro [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] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test src/lib.rs - chain_extension (line 747) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 758) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 213) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 595) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 687) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 967) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 821) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 844) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 1001) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 452) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 303) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 415) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 377) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 340) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 228) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 182) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 275) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 550) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 618) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 463) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 500) ... 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 747) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:749: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:750: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:753: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:752: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 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 - chain_extension (line 758) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:760: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:761: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:764: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:765: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:766: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:763: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 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:29 [INFO] [stdout] | [INFO] [stdout] 12 | 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 2 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 - trait_definition (line 595) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:596: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:600:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[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:603:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[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:607:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[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:597: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:597:17 [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:598:50 [INFO] [stdout] | [INFO] [stdout] 5 | 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:598:19 [INFO] [stdout] | [INFO] [stdout] 5 | type AccountId = ::AccountId; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [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 - test (line 687) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:688: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 967) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_env` [INFO] [stdout] --> src/lib.rs:970: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 821) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:822: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:824: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:826: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:826: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 844) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:845: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:848: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:906: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:912: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:927: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:936: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:857: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:874: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:882: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:890: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:903: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:942: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:850: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 1001) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:1002: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:1006: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:1004: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:1055: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:1069: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:1075: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:1090: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:1099: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:1008: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:1012: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:1015: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:1022: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:1029: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:1040: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:1047: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:1058: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:1060: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:1062: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:1064: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:1066: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:1105: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:1117: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:1119: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:1119: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:1121: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:1121: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:1122: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:1122: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:1123: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:1123: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:1124: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:1124: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:1125: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:1125:23 [INFO] [stdout] | [INFO] [stdout] 126 | type Timestamp = ::Timestamp; [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:1057: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] error[E0782]: trait objects must include the `dyn` keyword [INFO] [stdout] --> src/lib.rs:1127:27 [INFO] [stdout] | [INFO] [stdout] 128 | type ChainExtension = RuntimeReadWrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `dyn` keyword before this trait [INFO] [stdout] | [INFO] [stdout] 128 | type ChainExtension = dyn RuntimeReadWrite; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0658, E0782. [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 452) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:453: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:453: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:454: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:454: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 303) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:304: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:305: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:307: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:312: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:316: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 415) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:416: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:417: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:419: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:424: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:425: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:431: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:432: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:438: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 377) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:378: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:379: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:381: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:386: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:391: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:392: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:398: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 - contract (line 340) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:341: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:342: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:344: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:349: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:354: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:360: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 228) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:229: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:230: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:244:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[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:247:7 [INFO] [stdout] | [INFO] [stdout] 21 | #[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:249:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[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:234: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:241: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: aborting due to 7 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 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 275) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:276: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:277: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:279: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:284: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:286: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 550) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:551: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:553: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:555: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:562: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:568: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:574: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 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 - trait_definition (line 618) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:619: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:621: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:624: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:627:9 [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: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:631:9 [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:635: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:641:11 [INFO] [stdout] | [INFO] [stdout] 25 | #[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] 33 | #[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:654:11 [INFO] [stdout] | [INFO] [stdout] 38 | #[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:628:33 [INFO] [stdout] | [INFO] [stdout] 12 | 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:632:38 [INFO] [stdout] | [INFO] [stdout] 16 | fn transfer(&mut self, amount: Balance, to: AccountId) -> bool; [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:632:51 [INFO] [stdout] | [INFO] [stdout] 16 | fn transfer(&mut self, amount: Balance, to: AccountId) -> bool; [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:637: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:642:36 [INFO] [stdout] | [INFO] [stdout] 26 | 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:650:35 [INFO] [stdout] | [INFO] [stdout] 34 | 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:655:40 [INFO] [stdout] | [INFO] [stdout] 39 | fn transfer(&mut self, amount: Balance, to: AccountId) -> bool { [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:655:53 [INFO] [stdout] | [INFO] [stdout] 39 | fn transfer(&mut self, amount: Balance, to: AccountId) -> bool { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 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 463) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:464: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:468: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:466: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:470: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:474: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:477: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:481: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:485: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:476: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:483: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:484: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] ---- src/lib.rs - contract (line 500) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:501: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:503: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:506: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:513: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:520: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:531: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:508: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:509: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:510: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:515: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:521: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:532: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:522: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:523: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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - chain_extension (line 1001) [INFO] [stdout] src/lib.rs - chain_extension (line 747) [INFO] [stdout] src/lib.rs - chain_extension (line 758) [INFO] [stdout] src/lib.rs - chain_extension (line 821) [INFO] [stdout] src/lib.rs - chain_extension (line 844) [INFO] [stdout] src/lib.rs - chain_extension (line 967) [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 228) [INFO] [stdout] src/lib.rs - contract (line 275) [INFO] [stdout] src/lib.rs - contract (line 303) [INFO] [stdout] src/lib.rs - contract (line 340) [INFO] [stdout] src/lib.rs - contract (line 377) [INFO] [stdout] src/lib.rs - contract (line 415) [INFO] [stdout] src/lib.rs - contract (line 452) [INFO] [stdout] src/lib.rs - contract (line 463) [INFO] [stdout] src/lib.rs - contract (line 500) [INFO] [stdout] src/lib.rs - contract (line 550) [INFO] [stdout] src/lib.rs - test (line 687) [INFO] [stdout] src/lib.rs - trait_definition (line 595) [INFO] [stdout] src/lib.rs - trait_definition (line 618) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "62f2fabe047dc3deedbf8183009e297a71fe62b7fe8614e2aad60620abaf45f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62f2fabe047dc3deedbf8183009e297a71fe62b7fe8614e2aad60620abaf45f7", kill_on_drop: false }` [INFO] [stdout] 62f2fabe047dc3deedbf8183009e297a71fe62b7fe8614e2aad60620abaf45f7