[INFO] cloning repository https://github.com/ruuderie/mev-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ruuderie/mev-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruuderie%2Fmev-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruuderie%2Fmev-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 594154298c931a7b8d4fc7e000a6faffe1683771 [INFO] testing ruuderie/mev-rs against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruuderie%2Fmev-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ruuderie/mev-rs [INFO] finished tweaking git repo https://github.com/ruuderie/mev-rs [INFO] tweaked toml for git repo https://github.com/ruuderie/mev-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ruuderie/mev-rs on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ruuderie/mev-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35c73807238c9cb1c3df27914253accb71f9bccb2c1c89f7fc7ab379fed41176 [INFO] running `Command { std: "docker" "start" "-a" "35c73807238c9cb1c3df27914253accb71f9bccb2c1c89f7fc7ab379fed41176", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35c73807238c9cb1c3df27914253accb71f9bccb2c1c89f7fc7ab379fed41176", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35c73807238c9cb1c3df27914253accb71f9bccb2c1c89f7fc7ab379fed41176", kill_on_drop: false }` [INFO] [stdout] 35c73807238c9cb1c3df27914253accb71f9bccb2c1c89f7fc7ab379fed41176 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db1a720ae48006370fe9c62047a3dc7fa5dca5fc5bf718ee81ba64515cb75799 [INFO] running `Command { std: "docker" "start" "-a" "db1a720ae48006370fe9c62047a3dc7fa5dca5fc5bf718ee81ba64515cb75799", kill_on_drop: false }` [INFO] [stderr] Compiling mev-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/path/to/compiled/abi.json`: No such file or directory (os error 2) [INFO] [stdout] --> src/main.rs:21:80 [INFO] [stdout] | [INFO] [stdout] 21 | let contract = Contract::new(contract_address, ethers::contract::Abi::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ethers` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ethers::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `ethers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ethers`, use `cargo add ethers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/main.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ethers` [INFO] [stdout] --> src/main.rs:21:52 [INFO] [stdout] | [INFO] [stdout] 21 | let contract = Contract::new(contract_address, ethers::contract::Abi::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `ethers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ethers`, use `cargo add ethers` to add it to your `Cargo.toml` [INFO] [stdout] help: there is an enum variant `core::intrinsics::mir::UnwindTerminateReason::Abi` and 1 other; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 21 - let contract = Contract::new(contract_address, ethers::contract::Abi::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] 21 + let contract = Contract::new(contract_address, core::intrinsics::mir::UnwindTerminateReason::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] | [INFO] [stdout] 21 - let contract = Contract::new(contract_address, ethers::contract::Abi::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] 21 + let contract = Contract::new(contract_address, std::intrinsics::mir::UnwindTerminateReason::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Http` in this scope [INFO] [stdout] --> src/main.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | let provider = Provider::::try_from("http://localhost:8545")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Wallet` in this scope [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let wallet: Wallet = "your private key here" [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LocalWallet` in this scope [INFO] [stdout] --> src/main.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | .parse::()? [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> src/main.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | let contract_address: Address = "contract address here".parse()?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let target: Address = "target address here".parse()?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Address` in this scope [INFO] [stdout] --> src/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let target: Address = "target address here".parse()?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Provider` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | let provider = Provider::::try_from("http://localhost:8545")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Provider` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ChainId` [INFO] [stdout] --> src/main.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | .with_chain_id(ChainId::try_from(1u64)?); // Set chain ID to mainnet [INFO] [stdout] | ^^^^^^^ use of undeclared type `ChainId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Contract` [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let contract = Contract::new(contract_address, ethers::contract::Abi::load(include_bytes!("path/to/compiled/abi.json"))?, wallet); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Options` [INFO] [stdout] --> src/main.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | .call("executeWithGasLimit", (payload, target), None, Options::default()) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Options` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Options` [INFO] [stdout] --> src/main.rs:36:60 [INFO] [stdout] | [INFO] [stdout] 36 | .call("delegateToTarget", (target, payload), None, Options::default()) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Options` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mev-rs` (bin "mev-rs") due to 16 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "db1a720ae48006370fe9c62047a3dc7fa5dca5fc5bf718ee81ba64515cb75799", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db1a720ae48006370fe9c62047a3dc7fa5dca5fc5bf718ee81ba64515cb75799", kill_on_drop: false }` [INFO] [stdout] db1a720ae48006370fe9c62047a3dc7fa5dca5fc5bf718ee81ba64515cb75799