[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 master#7f5a42b073dc2bee2aa625052eb066ee07072048 for pr-78991 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notdanilo/nash-io on toolchain 7f5a42b073dc2bee2aa625052eb066ee07072048 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "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-5/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" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "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-5/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" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dae47f8687ca8eadde4c10cf44cf9cdd364a6566c61be946ac51f139fac7ca12 [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" "dae47f8687ca8eadde4c10cf44cf9cdd364a6566c61be946ac51f139fac7ca12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dae47f8687ca8eadde4c10cf44cf9cdd364a6566c61be946ac51f139fac7ca12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dae47f8687ca8eadde4c10cf44cf9cdd364a6566c61be946ac51f139fac7ca12", kill_on_drop: false }` [INFO] [stdout] dae47f8687ca8eadde4c10cf44cf9cdd364a6566c61be946ac51f139fac7ca12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+7f5a42b073dc2bee2aa625052eb066ee07072048" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38c77272a0951774688206275baad36e364f619e75f00902d7dafb05e98afccb [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" "38c77272a0951774688206275baad36e364f619e75f00902d7dafb05e98afccb", 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] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Checking subtle v2.3.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking cute v0.3.0 [INFO] [stderr] Checking vec_box v1.0.0 [INFO] [stderr] Checking min_max_macros v0.1.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking tinyvec v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking sugar v0.2.0 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing v0.1.21 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking unicode-normalization v0.1.14 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking socket2 v0.3.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rust_decimal v1.8.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking tungstenite v0.10.1 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking futures v0.3.8 [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::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::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::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] 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[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::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::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::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] 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] [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] [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: build failed [INFO] running `Command { std: "docker" "inspect" "38c77272a0951774688206275baad36e364f619e75f00902d7dafb05e98afccb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38c77272a0951774688206275baad36e364f619e75f00902d7dafb05e98afccb", kill_on_drop: false }` [INFO] [stdout] 38c77272a0951774688206275baad36e364f619e75f00902d7dafb05e98afccb