[INFO] fetching crate ink_lang_macro 3.0.1... [INFO] testing ink_lang_macro-3.0.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate ink_lang_macro 3.0.1 into /workspace/builds/worker-106/source [INFO] validating manifest of crates.io crate ink_lang_macro 3.0.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ink_lang_macro 3.0.1 [INFO] finished tweaking crates.io crate ink_lang_macro 3.0.1 [INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.1 written to /workspace/builds/worker-106/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e9e5f6c87dea12cef19313744c9b2cc997f517c65758571d13d4a4d07568f0e [INFO] running `Command { std: "docker" "start" "-a" "3e9e5f6c87dea12cef19313744c9b2cc997f517c65758571d13d4a4d07568f0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e9e5f6c87dea12cef19313744c9b2cc997f517c65758571d13d4a4d07568f0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e9e5f6c87dea12cef19313744c9b2cc997f517c65758571d13d4a4d07568f0e", kill_on_drop: false }` [INFO] [stdout] 3e9e5f6c87dea12cef19313744c9b2cc997f517c65758571d13d4a4d07568f0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 600eb9292d0c9ec9dd8e32b92541ed1c46277dd53ea61f67daba78c2b2844f44 [INFO] running `Command { std: "docker" "start" "-a" "600eb9292d0c9ec9dd8e32b92541ed1c46277dd53ea61f67daba78c2b2844f44", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling byte-slice-cast v1.2.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ink_prelude v3.0.1 [INFO] [stderr] Compiling wyz v0.5.0 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling bitvec v1.0.0 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling blake2 v0.10.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling ink_lang_ir v3.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling parity-scale-codec-derive v3.1.2 [INFO] [stderr] Compiling scale-info-derive v2.1.0 [INFO] [stderr] Compiling parity-scale-codec v3.1.2 [INFO] [stderr] Compiling scale-info v2.1.0 [INFO] [stderr] Compiling ink_lang_codegen v3.0.1 [INFO] [stderr] Compiling ink_primitives v3.0.1 [INFO] [stderr] Compiling ink_lang_macro v3.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.28s [INFO] running `Command { std: "docker" "inspect" "600eb9292d0c9ec9dd8e32b92541ed1c46277dd53ea61f67daba78c2b2844f44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "600eb9292d0c9ec9dd8e32b92541ed1c46277dd53ea61f67daba78c2b2844f44", kill_on_drop: false }` [INFO] [stdout] 600eb9292d0c9ec9dd8e32b92541ed1c46277dd53ea61f67daba78c2b2844f44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 275260c3b923aa07ff45a55cfcac407f6089038760f37323a78f8bc14be021ed [INFO] running `Command { std: "docker" "start" "-a" "275260c3b923aa07ff45a55cfcac407f6089038760f37323a78f8bc14be021ed", kill_on_drop: false }` [INFO] [stderr] Compiling ink_lang_macro v3.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.56s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/ink_lang_macro-4945a98b1ba98d4e) [INFO] running `Command { std: "docker" "inspect" "275260c3b923aa07ff45a55cfcac407f6089038760f37323a78f8bc14be021ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "275260c3b923aa07ff45a55cfcac407f6089038760f37323a78f8bc14be021ed", kill_on_drop: false }` [INFO] [stdout] 275260c3b923aa07ff45a55cfcac407f6089038760f37323a78f8bc14be021ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-106/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ac681d4039ec7f2a7da35160476cf8de1254cb6ce46beb2d9e78db82cabdfee6 [INFO] running `Command { std: "docker" "start" "-a" "ac681d4039ec7f2a7da35160476cf8de1254cb6ce46beb2d9e78db82cabdfee6", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ink_lang_macro-4945a98b1ba98d4e) [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 760) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 689) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 163) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 749) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 626) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 547) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 647) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 846) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 1004) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 969) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 225) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 290) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 500) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 327) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 823) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 178) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 253) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 365) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 402) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 129) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 570) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 413) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 450) ... FAILED [INFO] [stdout] test src/lib.rs - selector_bytes (line 80) ... ok [INFO] [stdout] test src/lib.rs - selector_id (line 60) ... 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 760) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:762: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:763: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:766: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:767: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:768: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:765:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [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 - test (line 689) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:690: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 - contract (line 163) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:166: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:173: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 - chain_extension (line 749) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:751: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:752: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:755: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:754:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [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 - trait_definition (line 626) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:627: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:628:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::trait_definition(namespace = "foo")] [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:630:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[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:633:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(message, selector = 42)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 547) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:548: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:552: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:555: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:559: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:549: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:549: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:550: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:550: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 - trait_definition (line 647) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:648: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:649:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::trait_definition(keep_attr = "foo, bar")] [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:651:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[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:655: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: aborting due to 4 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 - chain_extension (line 846) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:847: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:850: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:908: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:914: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:929: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:938: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:859: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:876: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:884: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:892: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:905: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:944: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:852:5 [INFO] [stdout] | [INFO] [stdout] 8 | type ErrorCode = ReadWriteErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [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 1004) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:1005: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:1009: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:1007: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:1058: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:1072: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:1078: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:1093: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:1102: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:1011: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:1015: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:1018: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:1025: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:1032: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:1043: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:1050: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:1061: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:1063: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:1065: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:1067: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:1069: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:1108: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:1120: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:1122: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:1122: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:1124: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:1124: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:1125: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:1125: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:1126: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:1126: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:1127: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:1127: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:1128: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:1128: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:1060:5 [INFO] [stdout] | [INFO] [stdout] 58 | type ErrorCode = ReadWriteErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [INFO] [stdout] [INFO] [stdout] error: aborting due to 35 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 969) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_env` [INFO] [stdout] --> src/lib.rs:972: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 - contract (line 225) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:226: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:227: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:229: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:234: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:236: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 290) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:291: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:292: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:294: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:299: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:304: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:310: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 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:505: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:512: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:518: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:524: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 327) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:328: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:329: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:331: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:336: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:341: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:342: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:348: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 - chain_extension (line 823) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:824: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:826: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:828: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:828:5 [INFO] [stdout] | [INFO] [stdout] 7 | type ErrorCode = MyErrorCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #29661 for more information [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 - contract (line 178) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:179: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:180: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:194: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:197: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:199: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:184: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:191: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 253) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:254: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:255: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:257: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:262: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:266: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 365) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:366: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:367: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:369: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:374: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:375: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:381: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:382: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:388: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 402) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:403: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:403: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:404: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:404: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 129) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:130: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:131:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract(keep_attr = "foo, bar")] [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:133: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:136: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:139:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[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 570) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:571: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:573: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:576: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:579: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:583: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:587: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:593: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:601: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:606: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:580: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:584: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:584: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:589: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:594: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:602: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:607: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:607: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 413) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:414: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:418: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:416: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:420: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:424: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:427: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:431: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:435: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:426: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:433: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:434:30 [INFO] [stdout] | [INFO] [stdout] 23 | let value = self.env().transferred_value(); [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 450) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:451: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:453: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:456: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:463: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:470: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:481: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:458: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:459: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:460: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:465: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:471: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:482: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:472: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:473: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 1004) [INFO] [stdout] src/lib.rs - chain_extension (line 749) [INFO] [stdout] src/lib.rs - chain_extension (line 760) [INFO] [stdout] src/lib.rs - chain_extension (line 823) [INFO] [stdout] src/lib.rs - chain_extension (line 846) [INFO] [stdout] src/lib.rs - chain_extension (line 969) [INFO] [stdout] src/lib.rs - contract (line 129) [INFO] [stdout] src/lib.rs - contract (line 163) [INFO] [stdout] src/lib.rs - contract (line 178) [INFO] [stdout] src/lib.rs - contract (line 225) [INFO] [stdout] src/lib.rs - contract (line 253) [INFO] [stdout] src/lib.rs - contract (line 290) [INFO] [stdout] src/lib.rs - contract (line 327) [INFO] [stdout] src/lib.rs - contract (line 365) [INFO] [stdout] src/lib.rs - contract (line 402) [INFO] [stdout] src/lib.rs - contract (line 413) [INFO] [stdout] src/lib.rs - contract (line 450) [INFO] [stdout] src/lib.rs - contract (line 500) [INFO] [stdout] src/lib.rs - test (line 689) [INFO] [stdout] src/lib.rs - trait_definition (line 547) [INFO] [stdout] src/lib.rs - trait_definition (line 570) [INFO] [stdout] src/lib.rs - trait_definition (line 626) [INFO] [stdout] src/lib.rs - trait_definition (line 647) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.23s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ac681d4039ec7f2a7da35160476cf8de1254cb6ce46beb2d9e78db82cabdfee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac681d4039ec7f2a7da35160476cf8de1254cb6ce46beb2d9e78db82cabdfee6", kill_on_drop: false }` [INFO] [stdout] ac681d4039ec7f2a7da35160476cf8de1254cb6ce46beb2d9e78db82cabdfee6