[INFO] fetching crate ink_lang_macro 3.0.0-rc2... [INFO] testing ink_lang_macro-3.0.0-rc2 against 1.49.0 for beta-1.50-1 [INFO] extracting crate ink_lang_macro 3.0.0-rc2 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate ink_lang_macro 3.0.0-rc2 on toolchain 1.49.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate ink_lang_macro 3.0.0-rc2 [INFO] finished tweaking crates.io crate ink_lang_macro 3.0.0-rc2 [INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.0-rc2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 065e2780dfc6a06e719c14b24878806107a1cca4414c0ce48fe11cb8d1fc3b38 [INFO] running `Command { std: "docker" "start" "-a" "065e2780dfc6a06e719c14b24878806107a1cca4414c0ce48fe11cb8d1fc3b38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "065e2780dfc6a06e719c14b24878806107a1cca4414c0ce48fe11cb8d1fc3b38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "065e2780dfc6a06e719c14b24878806107a1cca4414c0ce48fe11cb8d1fc3b38", kill_on_drop: false }` [INFO] [stdout] 065e2780dfc6a06e719c14b24878806107a1cca4414c0ce48fe11cb8d1fc3b38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15ec9de78505ae735acac6306ab28994a348fd42a8ae1005629d026aa0697c23 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "15ec9de78505ae735acac6306ab28994a348fd42a8ae1005629d026aa0697c23", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling radium v0.3.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling byte-slice-cast v0.3.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling trybuild v1.0.38 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc2 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling bitvec v0.17.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling blake2 v0.9.1 [INFO] [stderr] Compiling ink_lang_ir v3.0.0-rc2 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling scale-info-derive v0.2.1 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0-rc2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling parity-scale-codec-derive v1.2.2 [INFO] [stderr] Compiling parity-scale-codec v1.3.5 [INFO] [stderr] Compiling scale-info v0.4.1 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc2 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 53s [INFO] running `Command { std: "docker" "inspect" "15ec9de78505ae735acac6306ab28994a348fd42a8ae1005629d026aa0697c23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15ec9de78505ae735acac6306ab28994a348fd42a8ae1005629d026aa0697c23", kill_on_drop: false }` [INFO] [stdout] 15ec9de78505ae735acac6306ab28994a348fd42a8ae1005629d026aa0697c23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 53a760a0c8f590618cce9e7832e1795cd442268aace9b9fb520afe10e387f52e [INFO] running `Command { std: "docker" "start" "-a" "53a760a0c8f590618cce9e7832e1795cd442268aace9b9fb520afe10e387f52e", kill_on_drop: false }` [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "53a760a0c8f590618cce9e7832e1795cd442268aace9b9fb520afe10e387f52e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53a760a0c8f590618cce9e7832e1795cd442268aace9b9fb520afe10e387f52e", kill_on_drop: false }` [INFO] [stdout] 53a760a0c8f590618cce9e7832e1795cd442268aace9b9fb520afe10e387f52e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 19b379d867f2b8d2fe1410b61d91abae17c150fa40cc34ea267cbfd4cf9efa8b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "19b379d867f2b8d2fe1410b61d91abae17c150fa40cc34ea267cbfd4cf9efa8b", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ink_lang_macro-8851117567c60ddf [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 [INFO] [stdout] [INFO] [stderr] Doc-tests ink_lang_macro [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/lib.rs - contract (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 71) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 611) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 210) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 524) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 116) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 239) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 489) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 277) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 546) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 354) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 391) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 163) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 315) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 402) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 439) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - contract (line 148) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:151: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: aborting due to previous error [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 71) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_storage` [INFO] [stdout] --> src/lib.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ink_storage as storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no external crate `ink_storage` [INFO] [stdout] [INFO] [stdout] warning: type `_unused` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 5 | type _unused = [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Unused` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - test (line 611) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:612: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 210) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:211: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:212: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:214: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:219: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:221: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 - trait_definition (line 524) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:525: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:528:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[ink::trait_definition] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:531:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[ink(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink` [INFO] [stdout] --> src/lib.rs:535:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[ink(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:526: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:526:17 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 116) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:117: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:118: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:120: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:123: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:125: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 239) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:240: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:241: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:243: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:248: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:252: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 489) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:490: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:492: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:494: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:501: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:507: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:513: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 277) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ink_lang as ink; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `ink_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract` [INFO] [stdout] --> src/lib.rs:279:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:281: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:286: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:291: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:297: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 - trait_definition (line 546) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:547: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:549: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:552: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:555:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:559:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:563: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:570:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[ink(constructor)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:576:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[ink(message)] [INFO] [stdout] | ^^^ help: a built-in attribute with a similar name exists: `link` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:556:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(initial_supply: Balance) -> Self; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:560:34 [INFO] [stdout] | [INFO] [stdout] 16 | fn total_supply(&self) -> Balance; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:565: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:571:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(initial_supply: Balance) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 33 | fn total_supply(&self) -> Balance { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 354) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:355: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:356: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:358: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:363: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:364: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:370: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:371: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:377: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 391) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:392: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:392: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:393: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:393: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 81) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:82: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:83: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:85: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:88: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:90: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 163) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:164: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:165:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[ink::contract(env_types = 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:178:3 [INFO] [stdout] | [INFO] [stdout] 17 | #[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:181:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[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:183: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[E0433]: failed to resolve: use of undeclared crate or module `ink_env` [INFO] [stdout] --> src/lib.rs:169: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: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 315) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:316: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:317: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:319: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:324: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:329: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:330: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] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] error: cannot find attribute `ink` in this scope [INFO] [stdout] --> src/lib.rs:336: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 402) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:403: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:405: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:407: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:411:11 [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:419:11 [INFO] [stdout] | [INFO] [stdout] 19 | #[ink(message, payable)] [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:415:13 [INFO] [stdout] | [INFO] [stdout] 15 | ink_env::debug_println(&message); [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:424:13 [INFO] [stdout] | [INFO] [stdout] 24 | ink_env::debug_println(&message); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ink_env` [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:413:32 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Greeter; [INFO] [stdout] | ------------------- function or associated item `env` not found for this [INFO] [stdout] ... [INFO] [stdout] 13 | 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 mutable reference `&mut Greeter` in the current scope [INFO] [stdout] --> src/lib.rs:421:31 [INFO] [stdout] | [INFO] [stdout] 21 | let caller = self.env().caller(); [INFO] [stdout] | ^^^ method not found in `&mut Greeter` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `env` found for mutable reference `&mut Greeter` in the current scope [INFO] [stdout] --> src/lib.rs:422:30 [INFO] [stdout] | [INFO] [stdout] 22 | let value = self.env().transferred_balance(); [INFO] [stdout] | ^^^ method not found in `&mut Greeter` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, 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 439) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `ink_lang` [INFO] [stdout] --> src/lib.rs:440: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:442: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:445: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:452: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:459: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:470: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:447: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:448: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:449: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:454: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:460: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:471: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:461: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:462: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 - contract (line 116) [INFO] [stdout] src/lib.rs - contract (line 148) [INFO] [stdout] src/lib.rs - contract (line 163) [INFO] [stdout] src/lib.rs - contract (line 210) [INFO] [stdout] src/lib.rs - contract (line 239) [INFO] [stdout] src/lib.rs - contract (line 277) [INFO] [stdout] src/lib.rs - contract (line 315) [INFO] [stdout] src/lib.rs - contract (line 354) [INFO] [stdout] src/lib.rs - contract (line 391) [INFO] [stdout] src/lib.rs - contract (line 402) [INFO] [stdout] src/lib.rs - contract (line 439) [INFO] [stdout] src/lib.rs - contract (line 489) [INFO] [stdout] src/lib.rs - contract (line 71) [INFO] [stdout] src/lib.rs - contract (line 81) [INFO] [stdout] src/lib.rs - test (line 611) [INFO] [stdout] src/lib.rs - trait_definition (line 524) [INFO] [stdout] src/lib.rs - trait_definition (line 546) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "19b379d867f2b8d2fe1410b61d91abae17c150fa40cc34ea267cbfd4cf9efa8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19b379d867f2b8d2fe1410b61d91abae17c150fa40cc34ea267cbfd4cf9efa8b", kill_on_drop: false }` [INFO] [stdout] 19b379d867f2b8d2fe1410b61d91abae17c150fa40cc34ea267cbfd4cf9efa8b