[INFO] fetching crate pro_lang_macro 3.0.0-rc2... [INFO] testing pro_lang_macro-3.0.0-rc2 against beta-2021-09-08 for beta-1.56-1 [INFO] extracting crate pro_lang_macro 3.0.0-rc2 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate pro_lang_macro 3.0.0-rc2 on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pro_lang_macro 3.0.0-rc2 [INFO] finished tweaking crates.io crate pro_lang_macro 3.0.0-rc2 [INFO] tweaked toml for crates.io crate pro_lang_macro 3.0.0-rc2 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2be59bef0a44fc72b1622e42bb76feb6fdac7f5591cf84776b78754aba74aee [INFO] running `Command { std: "docker" "start" "-a" "b2be59bef0a44fc72b1622e42bb76feb6fdac7f5591cf84776b78754aba74aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2be59bef0a44fc72b1622e42bb76feb6fdac7f5591cf84776b78754aba74aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2be59bef0a44fc72b1622e42bb76feb6fdac7f5591cf84776b78754aba74aee", kill_on_drop: false }` [INFO] [stdout] b2be59bef0a44fc72b1622e42bb76feb6fdac7f5591cf84776b78754aba74aee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53a76d2666dd0988921a93af5c34ca2c0e353efb0078dd78508e934e31c60ed9 [INFO] running `Command { std: "docker" "start" "-a" "53a76d2666dd0988921a93af5c34ca2c0e353efb0078dd78508e934e31c60ed9", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling byte-slice-cast v1.0.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling pro_prelude v3.0.0-rc2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling blake2 v0.9.2 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling pro_lang_ir v3.0.0-rc2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling tetsy-scale-info-derive v0.3.0 [INFO] [stderr] Compiling pro_lang_codegen v3.0.0-rc2 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling tetsy-scale-codec-derive v2.0.1 [INFO] [stderr] Compiling tetsy-scale-codec v2.0.1 [INFO] [stderr] Compiling tetsy-scale-info v0.5.1 [INFO] [stderr] Compiling pro_primitives v3.0.0-rc2 [INFO] [stderr] Compiling pro_lang_macro v3.0.0-rc2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 32.42s [INFO] running `Command { std: "docker" "inspect" "53a76d2666dd0988921a93af5c34ca2c0e353efb0078dd78508e934e31c60ed9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53a76d2666dd0988921a93af5c34ca2c0e353efb0078dd78508e934e31c60ed9", kill_on_drop: false }` [INFO] [stdout] 53a76d2666dd0988921a93af5c34ca2c0e353efb0078dd78508e934e31c60ed9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1649c95e9aa37bdaa8bcbdc1cc2186c203cc9627604adaba485440c75c1ec9b7 [INFO] running `Command { std: "docker" "start" "-a" "1649c95e9aa37bdaa8bcbdc1cc2186c203cc9627604adaba485440c75c1ec9b7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling trybuild v1.0.45 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling pro_lang_macro v3.0.0-rc2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.27s [INFO] running `Command { std: "docker" "inspect" "1649c95e9aa37bdaa8bcbdc1cc2186c203cc9627604adaba485440c75c1ec9b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1649c95e9aa37bdaa8bcbdc1cc2186c203cc9627604adaba485440c75c1ec9b7", kill_on_drop: false }` [INFO] [stdout] 1649c95e9aa37bdaa8bcbdc1cc2186c203cc9627604adaba485440c75c1ec9b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1b7ac3d542c8a9508739ba7f3cd9feefdeff5c894db664cc2a9be80a6e4b81b1 [INFO] running `Command { std: "docker" "start" "-a" "1b7ac3d542c8a9508739ba7f3cd9feefdeff5c894db664cc2a9be80a6e4b81b1", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/pro_lang_macro-b48f495967638492) [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 pro_lang_macro [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test src/lib.rs - chain_extension (line 674) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 685) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 149) ... FAILED [INFO] [stdout] test src/lib.rs - test (line 614) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 527) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 894) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 771) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 928) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 213) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 280) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 242) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 394) ... FAILED [INFO] [stdout] test src/lib.rs - chain_extension (line 748) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 318) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 165) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 117) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 82) ... FAILED [INFO] [stdout] test src/lib.rs - trait_definition (line 549) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 357) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 492) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 442) ... FAILED [INFO] [stdout] test src/lib.rs - contract (line 405) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - chain_extension (line 674) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:676:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::chain_extension` [INFO] [stdout] --> src/lib.rs:677:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::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 `pro` [INFO] [stdout] --> src/lib.rs:680:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[pro(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:679: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 - chain_extension (line 685) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:687:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::chain_extension` [INFO] [stdout] --> src/lib.rs:688:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::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 `pro` [INFO] [stdout] --> src/lib.rs:691:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:692:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:693:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[pro(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:690: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 - contract (line 149) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:152:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl pro_env::Environment for MyEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `pro_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 12 | type ChainExtension = ::pro_env::NoChainExtension; [INFO] [stdout] | ^^^^^^^ could not find `pro_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 614) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_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 - trait_definition (line 527) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:528:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::trait_definition` [INFO] [stdout] --> src/lib.rs:531:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro::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 `pro` [INFO] [stdout] --> src/lib.rs:534:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:538:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[pro(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 `pro_env` [INFO] [stdout] --> src/lib.rs:529:48 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:529:17 [INFO] [stdout] | [INFO] [stdout] 4 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_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 72) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_storage` [INFO] [stdout] --> src/lib.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pro_storage as storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no external crate `pro_storage` [INFO] [stdout] [INFO] [stdout] warning: type `_unused` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 5 | type _unused = [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Unused` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chain_extension (line 894) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_env` [INFO] [stdout] --> src/lib.rs:897:5 [INFO] [stdout] | [INFO] [stdout] 5 | use pro_env::{Environment, DefaultEnvironment}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_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 771) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:772:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::chain_extension` [INFO] [stdout] --> src/lib.rs:775:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro::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 `pro` [INFO] [stdout] --> src/lib.rs:784:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:801:7 [INFO] [stdout] | [INFO] [stdout] 32 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:809:7 [INFO] [stdout] | [INFO] [stdout] 40 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:817:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:830:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[pro(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 `pro_env` [INFO] [stdout] --> src/lib.rs:869:6 [INFO] [stdout] | [INFO] [stdout] 100 | impl pro_env::chain_extension::FromStatusCode for ReadWriteErrorCode { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:777: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 9 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 928) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:929:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:933:5 [INFO] [stdout] | [INFO] [stdout] 7 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:931:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::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 `pro::chain_extension` [INFO] [stdout] --> src/lib.rs:982:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[pro::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 `pro` [INFO] [stdout] --> src/lib.rs:935:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:939:11 [INFO] [stdout] | [INFO] [stdout] 13 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:942:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:949:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:956:11 [INFO] [stdout] | [INFO] [stdout] 30 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:967:11 [INFO] [stdout] | [INFO] [stdout] 41 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:974:11 [INFO] [stdout] | [INFO] [stdout] 48 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:985:7 [INFO] [stdout] | [INFO] [stdout] 59 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:987:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:989:7 [INFO] [stdout] | [INFO] [stdout] 63 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:991:7 [INFO] [stdout] | [INFO] [stdout] 65 | #[pro(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 `pro` [INFO] [stdout] --> src/lib.rs:993:7 [INFO] [stdout] | [INFO] [stdout] 67 | #[pro(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 `pro_env` [INFO] [stdout] --> src/lib.rs:1032:6 [INFO] [stdout] | [INFO] [stdout] 106 | impl pro_env::chain_extension::FromStatusCode for ReadWriteErrorCode { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1044:6 [INFO] [stdout] | [INFO] [stdout] 118 | impl pro_env::Environment for CustomEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1046:41 [INFO] [stdout] | [INFO] [stdout] 120 | ::MAX_EVENT_TOPICS; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1046:10 [INFO] [stdout] | [INFO] [stdout] 120 | ::MAX_EVENT_TOPICS; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1048:54 [INFO] [stdout] | [INFO] [stdout] 122 | type AccountId = ::AccountId; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1048:23 [INFO] [stdout] | [INFO] [stdout] 122 | type AccountId = ::AccountId; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1049:52 [INFO] [stdout] | [INFO] [stdout] 123 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1049:21 [INFO] [stdout] | [INFO] [stdout] 123 | type Balance = ::Balance; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1050:49 [INFO] [stdout] | [INFO] [stdout] 124 | type Hash = ::Hash; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1050:18 [INFO] [stdout] | [INFO] [stdout] 124 | type Hash = ::Hash; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1051:56 [INFO] [stdout] | [INFO] [stdout] 125 | type BlockNumber = ::BlockNumber; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1051:25 [INFO] [stdout] | [INFO] [stdout] 125 | type BlockNumber = ::BlockNumber; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1052:54 [INFO] [stdout] | [INFO] [stdout] 126 | type Timestamp = ::Timestamp; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:1052:23 [INFO] [stdout] | [INFO] [stdout] 126 | type Timestamp = ::Timestamp; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0658]: associated type defaults are unstable [INFO] [stdout] --> src/lib.rs:984: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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1054:27 [INFO] [stdout] | [INFO] [stdout] 128 | type ChainExtension = RuntimeReadWrite; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn RuntimeReadWrite` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 213) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:215:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:217:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:222:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:224:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[pro(message)] [INFO] [stdout] | ^^^ [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 280) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:282:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:284:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:289:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:294:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:300:7 [INFO] [stdout] | [INFO] [stdout] 22 | #[pro(message)] [INFO] [stdout] | ^^^ [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 242) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:244:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:246:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:251:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:255:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[pro(message)] [INFO] [stdout] | ^^^ [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 394) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 3 | pro_env::test::run_test::(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:395:27 [INFO] [stdout] | [INFO] [stdout] 3 | pro_env::test::run_test::(|_| { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:396:14 [INFO] [stdout] | [INFO] [stdout] 4 | let caller = pro_env::caller::(); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:396:32 [INFO] [stdout] | [INFO] [stdout] 4 | let caller = pro_env::caller::(); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_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 - chain_extension (line 748) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::chain_extension` [INFO] [stdout] --> src/lib.rs:751:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::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:753: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:753: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 318) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:320:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:322:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:327:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:332:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:333:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[pro(payable)] // You can either specify payable out-of-line. [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:339:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[pro(message, payable)] // ... or specify payable inline. [INFO] [stdout] | ^^^ [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 165) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:167:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::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 `pro` in this scope [INFO] [stdout] --> src/lib.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 21 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl pro_env::Environment for MyEnvironment { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `pro_env` in the list of imported crates [INFO] [stdout] --> src/lib.rs:178:29 [INFO] [stdout] | [INFO] [stdout] 15 | type ChainExtension = ::pro_env::NoChainExtension; [INFO] [stdout] | ^^^^^^^ could not find `pro_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 117) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::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 `pro` in this scope [INFO] [stdout] --> src/lib.rs:121:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:124:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:126:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(message)] [INFO] [stdout] | ^^^ [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 82) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:84:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::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 `pro` in this scope [INFO] [stdout] --> src/lib.rs:86:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:91:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(message)] [INFO] [stdout] | ^^^ [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 549) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:550:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:552:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::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 `pro_lang` [INFO] [stdout] --> src/lib.rs:555:6 [INFO] [stdout] | [INFO] [stdout] 8 | #[pro_lang::trait_definition] [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:558:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:562:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:566:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:573:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:579:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope [INFO] [stdout] --> src/lib.rs:559: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:563: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:568: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:574: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:580: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 357) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:358:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:359:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:361:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:366:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:367:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[pro(selector = "0xDEADBEEF")] // Works on constructors as well. [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:373:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:374:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[pro(selector = "0xCAFEBABE")] // You can either specify selector out-of-line. [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:380:7 [INFO] [stdout] | [INFO] [stdout] 25 | #[pro(message, selector = "0xFEEDBEEF")] // ... or specify selector inline. [INFO] [stdout] | ^^^ [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 492) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:493:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:495:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:497:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:504:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:510:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:516:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[pro(message)] [INFO] [stdout] | ^^^ [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 442) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:443:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:445:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:448:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[pro(event)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:455:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:462:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:473:11 [INFO] [stdout] | [INFO] [stdout] 33 | #[pro(message)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AccountId` in this scope [INFO] [stdout] --> src/lib.rs:450: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:451: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:452: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:457: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:463: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:474: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:464: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:465:19 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Erc20 { [INFO] [stdout] | ---------------- function or associated item `env` not found for this [INFO] [stdout] ... [INFO] [stdout] 25 | Self::env().emit_event(Transferred { [INFO] [stdout] | ^^^ function or associated item not found in `Erc20` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - contract (line 405) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pro_lang` [INFO] [stdout] --> src/lib.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pro_lang as pro; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `pro_lang` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `pro::contract` [INFO] [stdout] --> src/lib.rs:408:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[pro::contract] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:410:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[pro(storage)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:414:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[pro(constructor)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pro` in this scope [INFO] [stdout] --> src/lib.rs:422:11 [INFO] [stdout] | [INFO] [stdout] 19 | #[pro(message, payable)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 15 | pro_env::debug_println(&message); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_env` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `pro_env` [INFO] [stdout] --> src/lib.rs:427:13 [INFO] [stdout] | [INFO] [stdout] 24 | pro_env::debug_println(&message); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `pro_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:416: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:424: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:425: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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - chain_extension (line 674) [INFO] [stdout] src/lib.rs - chain_extension (line 685) [INFO] [stdout] src/lib.rs - chain_extension (line 748) [INFO] [stdout] src/lib.rs - chain_extension (line 771) [INFO] [stdout] src/lib.rs - chain_extension (line 894) [INFO] [stdout] src/lib.rs - chain_extension (line 928) [INFO] [stdout] src/lib.rs - contract (line 117) [INFO] [stdout] src/lib.rs - contract (line 149) [INFO] [stdout] src/lib.rs - contract (line 165) [INFO] [stdout] src/lib.rs - contract (line 213) [INFO] [stdout] src/lib.rs - contract (line 242) [INFO] [stdout] src/lib.rs - contract (line 280) [INFO] [stdout] src/lib.rs - contract (line 318) [INFO] [stdout] src/lib.rs - contract (line 357) [INFO] [stdout] src/lib.rs - contract (line 394) [INFO] [stdout] src/lib.rs - contract (line 405) [INFO] [stdout] src/lib.rs - contract (line 442) [INFO] [stdout] src/lib.rs - contract (line 492) [INFO] [stdout] src/lib.rs - contract (line 72) [INFO] [stdout] src/lib.rs - contract (line 82) [INFO] [stdout] src/lib.rs - test (line 614) [INFO] [stdout] src/lib.rs - trait_definition (line 527) [INFO] [stdout] src/lib.rs - trait_definition (line 549) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "1b7ac3d542c8a9508739ba7f3cd9feefdeff5c894db664cc2a9be80a6e4b81b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b7ac3d542c8a9508739ba7f3cd9feefdeff5c894db664cc2a9be80a6e4b81b1", kill_on_drop: false }` [INFO] [stdout] 1b7ac3d542c8a9508739ba7f3cd9feefdeff5c894db664cc2a9be80a6e4b81b1