[INFO] fetching crate ethers-contract 0.2.2... [INFO] checking ethers-contract-0.2.2 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate ethers-contract 0.2.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate ethers-contract 0.2.2 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ethers-contract 0.2.2 [INFO] finished tweaking crates.io crate ethers-contract 0.2.2 [INFO] tweaked toml for crates.io crate ethers-contract 0.2.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 189a13f72f2319d635aa5f4ea45d18d3242be91ca5f0631cb802131bae0bbb7b [INFO] running `Command { std: "docker" "start" "-a" "189a13f72f2319d635aa5f4ea45d18d3242be91ca5f0631cb802131bae0bbb7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "189a13f72f2319d635aa5f4ea45d18d3242be91ca5f0631cb802131bae0bbb7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "189a13f72f2319d635aa5f4ea45d18d3242be91ca5f0631cb802131bae0bbb7b", kill_on_drop: false }` [INFO] [stdout] 189a13f72f2319d635aa5f4ea45d18d3242be91ca5f0631cb802131bae0bbb7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f90bc36c9fdc3304dfe226ec2853d6f4b179e34c26c6278eb92eaaf4a5011874 [INFO] running `Command { std: "docker" "start" "-a" "f90bc36c9fdc3304dfe226ec2853d6f4b179e34c26c6278eb92eaaf4a5011874", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling futures-core v0.3.16 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.16 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking byte-slice-cast v1.0.0 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling futures-channel v0.3.16 [INFO] [stderr] Checking futures-sink v0.3.16 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking zeroize v1.4.1 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking bitvec v0.18.5 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking uint v0.9.1 [INFO] [stderr] Checking tiny-keccak v2.0.2 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling futures-macro v0.3.16 [INFO] [stderr] Compiling futures-util v0.3.16 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.1 [INFO] [stderr] Checking elliptic-curve v0.9.12 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking signature v1.2.2 [INFO] [stderr] Checking ff v0.8.0 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking group v0.8.0 [INFO] [stderr] Checking elliptic-curve v0.8.5 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking ecdsa v0.10.2 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking k256 v0.7.3 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.1 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling auto_impl v0.4.1 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Checking pin-project v1.0.8 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking impl-serde v0.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking rlp v0.5.0 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Checking ethbloom v0.11.0 [INFO] [stderr] Compiling proc-macro-crate v1.0.0 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Compiling parity-scale-codec-derive v2.2.0 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking parity-scale-codec v2.2.0 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking primitive-types v0.9.1 [INFO] [stderr] Checking hyper v0.14.11 [INFO] [stderr] Checking ethereum-types v0.11.0 [INFO] [stderr] Checking ethabi-next v13.3.0 [INFO] [stderr] Checking ethers-core v0.2.2 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking reqwest v0.11.4 [INFO] [stderr] Checking ethers-providers v0.2.2 [INFO] [stderr] Checking ethers-contract v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ethers` [INFO] [stdout] --> tests/contract.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ethers::{contract::ContractFactory, types::H256}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `ethers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ethers_middleware` [INFO] [stdout] --> tests/common/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_middleware::signer::SignerMiddleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `ethers_middleware` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ethers` [INFO] [stdout] --> tests/contract.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use ethers::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `ethers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ethers_signers` [INFO] [stdout] --> tests/common/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use ethers_signers::LocalWallet; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared crate or module `ethers_signers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/contract.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/contract.rs:92:7 [INFO] [stdout] | [INFO] [stdout] 92 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/contract.rs:121:7 [INFO] [stdout] | [INFO] [stdout] 121 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/contract.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 160 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/contract.rs:196:7 [INFO] [stdout] | [INFO] [stdout] 196 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SignerMiddleware` [INFO] [stdout] --> tests/common/mod.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | Arc::new(SignerMiddleware::new(provider, wallet)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `SignerMiddleware` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SignerMiddleware` in this scope [INFO] [stdout] --> tests/common/mod.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | type HttpWallet = SignerMiddleware, LocalWallet>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ganache` [INFO] [stdout] --> tests/contract.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | let ganache = Ganache::new().spawn(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::utils::Ganache; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContractFactory` [INFO] [stdout] --> tests/contract.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | let factory = ContractFactory::new(abi, bytecode, client.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::ContractFactory; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_contract::ContractFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:39:48 [INFO] [stdout] | [INFO] [stdout] 39 | let last_sender = contract.method::<_, Address>("lastSender", ()).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | .method::<_, H256>("setValue", "hi".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 73 | .method::<_, Address>("lastSender", ()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Address` [INFO] [stdout] --> tests/contract.rs:78:34 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(init_address, Address::zero()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | .method::<_, H256>("setValues", ("hi".to_owned(), "bye".to_owned())) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ganache` [INFO] [stdout] --> tests/contract.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 95 | let ganache = Ganache::new().spawn(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::utils::Ganache; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | .method::<_, H256>("setValue", "hi".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ganache` [INFO] [stdout] --> tests/contract.rs:124:23 [INFO] [stdout] | [INFO] [stdout] 124 | let ganache = Ganache::new().spawn(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::utils::Ganache; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Provider` [INFO] [stdout] --> tests/contract.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | let ws = Provider::connect(ganache.ws_endpoint()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Provider; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_providers::Provider; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | .method::<_, H256>("setValue", i.to_string()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ganache` [INFO] [stdout] --> tests/contract.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | let ganache = Ganache::new().spawn(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::utils::Ganache; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Provider` [INFO] [stdout] --> tests/contract.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | let provider = Provider::::try_from(ganache.endpoint()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Provider; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_providers::Provider; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Http` in this scope [INFO] [stdout] --> tests/contract.rs:167:35 [INFO] [stdout] | [INFO] [stdout] 167 | let provider = Provider::::try_from(ganache.endpoint()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Http; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_providers::Http; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:180:26 [INFO] [stdout] | [INFO] [stdout] 180 | .method::<_, H256>("setValue", "hi".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ganache` [INFO] [stdout] --> tests/contract.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | let ganache = Ganache::new().spawn(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::utils::Ganache; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContractFactory` [INFO] [stdout] --> tests/contract.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | ContractFactory::new(multicall_abi, multicall_bytecode, client.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::ContractFactory; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_contract::ContractFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContractFactory` [INFO] [stdout] --> tests/contract.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | let simple_factory = ContractFactory::new(abi.clone(), bytecode.clone(), client2.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::ContractFactory; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_contract::ContractFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContractFactory` [INFO] [stdout] --> tests/contract.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | ContractFactory::new(not_so_simple_abi, not_so_simple_bytecode, client3.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::ContractFactory; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_contract::ContractFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:248:26 [INFO] [stdout] | [INFO] [stdout] 248 | .method::<_, H256>("setValue", "reset first".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:255:26 [INFO] [stdout] | [INFO] [stdout] 255 | .method::<_, H256>("setValue", "reset second".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:264:35 [INFO] [stdout] | [INFO] [stdout] 264 | .method::<_, (String, Address)>("getValues", ()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:267:26 [INFO] [stdout] | [INFO] [stdout] 267 | .method::<_, Address>("lastSender", ()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:270:26 [INFO] [stdout] | [INFO] [stdout] 270 | .method::<_, Address>("lastSender", ()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Multicall` [INFO] [stdout] --> tests/contract.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | let mut multicall = Multicall::new(client4.clone(), Some(addr)).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_contract::Multicall; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:282:44 [INFO] [stdout] | [INFO] [stdout] 282 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:282:54 [INFO] [stdout] | [INFO] [stdout] 282 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:282:63 [INFO] [stdout] | [INFO] [stdout] 282 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:294:26 [INFO] [stdout] | [INFO] [stdout] 294 | .method::<_, H256>("setValue", "first reset again".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `H256` in this scope [INFO] [stdout] --> tests/contract.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 298 | .method::<_, H256>("setValue", "second reset again".to_owned()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::H256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PendingTransaction` [INFO] [stdout] --> tests/contract.rs:313:27 [INFO] [stdout] | [INFO] [stdout] 313 | let _tx_receipt = PendingTransaction::new(tx_hash, client.provider()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_providers::PendingTransaction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:321:44 [INFO] [stdout] | [INFO] [stdout] 321 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:321:54 [INFO] [stdout] | [INFO] [stdout] 321 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> tests/contract.rs:321:63 [INFO] [stdout] | [INFO] [stdout] 321 | let return_data: (String, (String, Address), Address, Address) = [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::common::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::abi::Address; [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::Address; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `U256` in this scope [INFO] [stdout] --> tests/contract.rs:339:24 [INFO] [stdout] | [INFO] [stdout] 339 | let balances: (U256, U256, U256) = multicall.call().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `U256` in this scope [INFO] [stdout] --> tests/contract.rs:339:30 [INFO] [stdout] | [INFO] [stdout] 339 | let balances: (U256, U256, U256) = multicall.call().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `U256` in this scope [INFO] [stdout] --> tests/contract.rs:339:36 [INFO] [stdout] | [INFO] [stdout] 339 | let balances: (U256, U256, U256) = multicall.call().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `U256` [INFO] [stdout] --> tests/contract.rs:340:32 [INFO] [stdout] | [INFO] [stdout] 340 | assert_eq!(balances.0, U256::from(100000000000000000000u128)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `U256` [INFO] [stdout] --> tests/contract.rs:341:32 [INFO] [stdout] | [INFO] [stdout] 341 | assert_eq!(balances.1, U256::from(100000000000000000000u128)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `U256` [INFO] [stdout] --> tests/contract.rs:342:32 [INFO] [stdout] | [INFO] [stdout] 342 | assert_eq!(balances.2, U256::from(100000000000000000000u128)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use ethers_core::types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `convert::TryFrom` [INFO] [stdout] --> tests/contract.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::{convert::TryFrom, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `ethers_contract::stream::EventStream` in the current scope [INFO] [stdout] --> tests/contract.rs:153:30 [INFO] [stdout] | [INFO] [stdout] 153 | let log = stream.next().await.unwrap().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ethers_contract::stream::EventStream<'_, FilterWatcher<'_, _, ethers_core::types::Log>, common::ValueChanged, ContractError<_>>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.16/src/stream/stream/mod.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn next(&mut self) -> Next<'_, Self> [INFO] [stdout] | ---- the method is available for `ethers_contract::stream::EventStream<'_, FilterWatcher<'_, _, ethers_core::types::Log>, common::ValueChanged, ContractError<_>>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use ethers_providers::StreamExt;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `ethers_contract::stream::EventStream` in the current scope [INFO] [stdout] --> tests/contract.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 154 | let log2 = subscription.next().await.unwrap().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ethers_contract::stream::EventStream<'_, SubscriptionStream<'_, _, ethers_core::types::Log>, common::ValueChanged, ContractError<_>>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.16/src/stream/stream/mod.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | fn next(&mut self) -> Next<'_, Self> [INFO] [stdout] | ---- the method is available for `ethers_contract::stream::EventStream<'_, SubscriptionStream<'_, _, ethers_core::types::Log>, common::ValueChanged, ContractError<_>>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use ethers_providers::StreamExt;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 54 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ethers-contract` due to 55 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "f90bc36c9fdc3304dfe226ec2853d6f4b179e34c26c6278eb92eaaf4a5011874", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f90bc36c9fdc3304dfe226ec2853d6f4b179e34c26c6278eb92eaaf4a5011874", kill_on_drop: false }` [INFO] [stdout] f90bc36c9fdc3304dfe226ec2853d6f4b179e34c26c6278eb92eaaf4a5011874