[INFO] cloning repository https://github.com/notdanilo/nash-io [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notdanilo/nash-io" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6666ba759059b289caf0d7553a872e48ea2a7c9 [INFO] checking notdanilo/nash-io against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notdanilo/nash-io on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notdanilo/nash-io [INFO] removed path dependency openlimits from git repo https://github.com/notdanilo/nash-io [INFO] finished tweaking git repo https://github.com/notdanilo/nash-io [INFO] tweaked toml for git repo https://github.com/notdanilo/nash-io written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/notdanilo/nash-io already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-3/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "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" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha-1 v0.9.2 [INFO] [stderr] Downloaded sha2 v0.9.2 [INFO] [stderr] Downloaded cute v0.3.0 [INFO] [stderr] Downloaded rust_decimal v1.8.1 [INFO] [stderr] Downloaded min_max_macros v0.1.1 [INFO] [stderr] Downloaded vec_box v1.0.0 [INFO] [stderr] Downloaded sugar v0.2.0 [INFO] [stderr] Downloaded openlimits v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76947752401f05c2bcf483fc8e0a516834da2702ec07661b710e6aa9623bc608 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "76947752401f05c2bcf483fc8e0a516834da2702ec07661b710e6aa9623bc608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76947752401f05c2bcf483fc8e0a516834da2702ec07661b710e6aa9623bc608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76947752401f05c2bcf483fc8e0a516834da2702ec07661b710e6aa9623bc608", kill_on_drop: false }` [INFO] [stdout] 76947752401f05c2bcf483fc8e0a516834da2702ec07661b710e6aa9623bc608 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8f3c1ae59179e8628b6cfe5b9245260576ae534a702c702eb581ce6f89b9b94a [INFO] running `Command { std: "docker" "start" "-a" "8f3c1ae59179e8628b6cfe5b9245260576ae534a702c702eb581ce6f89b9b94a", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Checking min_max_macros v0.1.1 [INFO] [stderr] Checking vec_box v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking rust_decimal v1.8.1 [INFO] [stderr] Checking sugar v0.2.0 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.10.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.8 [INFO] [stderr] Checking openlimits v0.1.0 [INFO] [stderr] Checking hiring-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `openlimits::exchange_ws` [INFO] [stdout] --> src/exchanges/nash.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::exchange_ws::OpenLimitsWs; [INFO] [stdout] | ^^^^^^^^^^^ could not find `exchange_ws` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::exchange_ws` [INFO] [stdout] --> src/exchanges/nash.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::exchange_ws::OpenLimitsWs; [INFO] [stdout] | ^^^^^^^^^^^ could not find `exchange_ws` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::nash` [INFO] [stdout] --> src/exchanges/nash.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::nash::NashStream; [INFO] [stdout] | ^^^^ could not find `nash` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::nash` [INFO] [stdout] --> src/exchanges/nash.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::nash::NashStream; [INFO] [stdout] | ^^^^ could not find `nash` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket` [INFO] [stdout] --> src/exchanges/nash.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^ could not find `websocket` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket` [INFO] [stdout] --> src/exchanges/nash.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^ could not find `websocket` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::exchange_ws` [INFO] [stdout] --> src/exchanges/binance.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use openlimits::exchange_ws::OpenLimitsWs; [INFO] [stdout] | ^^^^^^^^^^^ could not find `exchange_ws` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::exchange_ws` [INFO] [stdout] --> src/exchanges/binance.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use openlimits::exchange_ws::OpenLimitsWs; [INFO] [stdout] | ^^^^^^^^^^^ could not find `exchange_ws` in `openlimits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::binance::BinanceWebsocket` [INFO] [stdout] --> src/exchanges/binance.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::binance::BinanceWebsocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BinanceWebsocket` in `binance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::binance::BinanceWebsocket` [INFO] [stdout] --> src/exchanges/binance.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::binance::BinanceWebsocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BinanceWebsocket` in `binance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket` [INFO] [stdout] --> src/exchanges/binance.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^ could not find `websocket` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket` [INFO] [stdout] --> src/exchanges/binance.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^ could not find `websocket` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::AskBid` [INFO] [stdout] --> src/arbitrage.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::model::{OrderBookResponse, AskBid}; [INFO] [stdout] | ^^^^^^ no `AskBid` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::AskBid` [INFO] [stdout] --> src/arbitrage.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use openlimits::model::{OrderBookResponse, AskBid}; [INFO] [stdout] | ^^^^^^ no `AskBid` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::AskBid` [INFO] [stdout] --> src/arbitrage.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 81 | use openlimits::model::{OrderBookResponse, AskBid}; [INFO] [stdout] | ^^^^^^ no `AskBid` in `model` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/exchanges.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/exchanges.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | 1, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | 1000, [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | 1, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | 1000, [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut nash = exchanges::nash().await; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut binance = exchanges::binance().await; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:65 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut nash = exchanges::nash().await; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut binance = exchanges::binance().await; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:65 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/nash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/binance.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/nash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/binance.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hiring-challenge` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8f3c1ae59179e8628b6cfe5b9245260576ae534a702c702eb581ce6f89b9b94a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f3c1ae59179e8628b6cfe5b9245260576ae534a702c702eb581ce6f89b9b94a", kill_on_drop: false }` [INFO] [stdout] 8f3c1ae59179e8628b6cfe5b9245260576ae534a702c702eb581ce6f89b9b94a