[INFO] fetching crate ink_lang_macro 3.0.0-rc9... [INFO] testing ink_lang_macro-3.0.0-rc9 against 1.59.0 for beta-1.60-1 [INFO] extracting crate ink_lang_macro 3.0.0-rc9 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate ink_lang_macro 3.0.0-rc9 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ink_lang_macro 3.0.0-rc9 [INFO] finished tweaking crates.io crate ink_lang_macro 3.0.0-rc9 [INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.0-rc9 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0353739a5901fb4d4754cdedf86ccf2aba203150083adfe6c05fa47504848321 [INFO] running `Command { std: "docker" "start" "-a" "0353739a5901fb4d4754cdedf86ccf2aba203150083adfe6c05fa47504848321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0353739a5901fb4d4754cdedf86ccf2aba203150083adfe6c05fa47504848321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0353739a5901fb4d4754cdedf86ccf2aba203150083adfe6c05fa47504848321", kill_on_drop: false }` [INFO] [stdout] 0353739a5901fb4d4754cdedf86ccf2aba203150083adfe6c05fa47504848321 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8edfac9c8602dc851a1027e77a7a636cb549e9c1b69c47f22443e7c38beed2de [INFO] running `Command { std: "docker" "start" "-a" "8edfac9c8602dc851a1027e77a7a636cb549e9c1b69c47f22443e7c38beed2de", 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] Compiling syn v1.0.86 [INFO] [stderr] Compiling serde v1.0.136 [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 typenum v1.15.0 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc9 [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.0-rc9 [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.0.0 [INFO] [stderr] Compiling scale-info-derive v2.0.0 [INFO] [stderr] Compiling parity-scale-codec v3.0.0 [INFO] [stderr] Compiling scale-info v2.0.1 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0-rc9 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc9 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc9 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.77s [INFO] running `Command { std: "docker" "inspect" "8edfac9c8602dc851a1027e77a7a636cb549e9c1b69c47f22443e7c38beed2de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8edfac9c8602dc851a1027e77a7a636cb549e9c1b69c47f22443e7c38beed2de", kill_on_drop: false }` [INFO] [stdout] 8edfac9c8602dc851a1027e77a7a636cb549e9c1b69c47f22443e7c38beed2de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfb1262fc84a75480e4bc1971c37082db5e706c79bf194fafb1bb8b502fe310a [INFO] running `Command { std: "docker" "start" "-a" "bfb1262fc84a75480e4bc1971c37082db5e706c79bf194fafb1bb8b502fe310a", kill_on_drop: false }` [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc9 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "bfb1262fc84a75480e4bc1971c37082db5e706c79bf194fafb1bb8b502fe310a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfb1262fc84a75480e4bc1971c37082db5e706c79bf194fafb1bb8b502fe310a", kill_on_drop: false }` [INFO] [stdout] bfb1262fc84a75480e4bc1971c37082db5e706c79bf194fafb1bb8b502fe310a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5257b889dbc373937bef9df642b71b855a084103d63cdb9ba2b2ecaebe6a6642 [INFO] running `Command { std: "docker" "start" "-a" "5257b889dbc373937bef9df642b71b855a084103d63cdb9ba2b2ecaebe6a6642", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ink_lang_macro-f8a8b9af559b3722) [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 - contract (line 141) ... ignored [INFO] [stdout] test src/lib.rs - chain_extension (line 761) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 750) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 598) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 216) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 690) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 970) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 847) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 824) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 185) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 231) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 278) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 380) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 418) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 553) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 343) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 151) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 1005) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 306) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 466) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 455) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 621) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 503) ... 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 761) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:763: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:764: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:767: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:768: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:769: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:766: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 - chain_extension (line 750) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:752: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:753: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:756: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:755: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 598) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:599: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:603: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:606: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:610: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:600: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:600: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:601: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:601: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 - contract (line 216) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:219: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:226: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 - test (line 690) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:691: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 970) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_env` [INFO] [stdout] --> src/lib.rs:973: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 847) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:848: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:851: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:909: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:915: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:930: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:939: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:860: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:877: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:885: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:893: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:906: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:945: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:853: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 824) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:825: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:827: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:829: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:829: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 185) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:186: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:187: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:189: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:192: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:194: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 231) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:232: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:233: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:247: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:250: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:252: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:237: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:244: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 278) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:279: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:280: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:282: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:287: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:289: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 380) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:381: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:382: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:384: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:389: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:394: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:395: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:401: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 418) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:419: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:420: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:422: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:427: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:428: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:434: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:435: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:441: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 553) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:554: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:556: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:558: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:565: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:571: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:577: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 343) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:344: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:345: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:347: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:352: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:357: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:363: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 151) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:152: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:153: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:155: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:158: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:160: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 - chain_extension (line 1005) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:1006: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:1010: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:1008: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:1059: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:1073: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:1079: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:1094: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:1103: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:1012: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:1016: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:1019: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:1026: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:1033: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:1044: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:1051: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:1062: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:1064: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:1066: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:1068: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:1070: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:1109: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:1121: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:1123: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:1123: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:1125: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:1125: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:1126: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:1126: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:1127: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:1127: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:1128: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:1128: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:1129: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:1129: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:1061: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 - contract (line 306) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:307: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:308: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:310: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:315: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:319: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 466) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:467: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:471: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:469: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:473: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:477: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:480: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:484: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:488: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:479: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:486: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:487: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 455) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:456: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:456: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:457: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:457: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 - trait_definition (line 621) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:622: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:624: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:627: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:630: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:634: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:638: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:644: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:652: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:657: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:631: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:635: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:635: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:640: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:645: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:653: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:658: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:658: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 503) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:504: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:506: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:509: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:516: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:523: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:534: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:511: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:512: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:513: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:518: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:524: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:535: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:525: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:526: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 1005) [INFO] [stdout] src/lib.rs - chain_extension (line 750) [INFO] [stdout] src/lib.rs - chain_extension (line 761) [INFO] [stdout] src/lib.rs - chain_extension (line 824) [INFO] [stdout] src/lib.rs - chain_extension (line 847) [INFO] [stdout] src/lib.rs - chain_extension (line 970) [INFO] [stdout] src/lib.rs - contract (line 151) [INFO] [stdout] src/lib.rs - contract (line 185) [INFO] [stdout] src/lib.rs - contract (line 216) [INFO] [stdout] src/lib.rs - contract (line 231) [INFO] [stdout] src/lib.rs - contract (line 278) [INFO] [stdout] src/lib.rs - contract (line 306) [INFO] [stdout] src/lib.rs - contract (line 343) [INFO] [stdout] src/lib.rs - contract (line 380) [INFO] [stdout] src/lib.rs - contract (line 418) [INFO] [stdout] src/lib.rs - contract (line 455) [INFO] [stdout] src/lib.rs - contract (line 466) [INFO] [stdout] src/lib.rs - contract (line 503) [INFO] [stdout] src/lib.rs - contract (line 553) [INFO] [stdout] src/lib.rs - test (line 690) [INFO] [stdout] src/lib.rs - trait_definition (line 598) [INFO] [stdout] src/lib.rs - trait_definition (line 621) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 22 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.89s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5257b889dbc373937bef9df642b71b855a084103d63cdb9ba2b2ecaebe6a6642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5257b889dbc373937bef9df642b71b855a084103d63cdb9ba2b2ecaebe6a6642", kill_on_drop: false }` [INFO] [stdout] 5257b889dbc373937bef9df642b71b855a084103d63cdb9ba2b2ecaebe6a6642