[INFO] cloning repository https://github.com/stroogle/rust_arbitrage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stroogle/rust_arbitrage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstroogle%2Frust_arbitrage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstroogle%2Frust_arbitrage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8ae1eb17e3216e8528cf8668e1b83ca1b0bd629 [INFO] checking stroogle/rust_arbitrage against master#18a6d911caba59605eb03db1452848a85d2e5879 for pr-112743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstroogle%2Frust_arbitrage" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stroogle/rust_arbitrage on toolchain 18a6d911caba59605eb03db1452848a85d2e5879 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stroogle/rust_arbitrage [INFO] finished tweaking git repo https://github.com/stroogle/rust_arbitrage [INFO] tweaked toml for git repo https://github.com/stroogle/rust_arbitrage written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/stroogle/rust_arbitrage 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" "+18a6d911caba59605eb03db1452848a85d2e5879" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72e83236ace85f0527c4e1e83e7344565ef944095c1ba38c412c17a1f42a4389 [INFO] running `Command { std: "docker" "start" "-a" "72e83236ace85f0527c4e1e83e7344565ef944095c1ba38c412c17a1f42a4389", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72e83236ace85f0527c4e1e83e7344565ef944095c1ba38c412c17a1f42a4389", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72e83236ace85f0527c4e1e83e7344565ef944095c1ba38c412c17a1f42a4389", kill_on_drop: false }` [INFO] [stdout] 72e83236ace85f0527c4e1e83e7344565ef944095c1ba38c412c17a1f42a4389 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 731ffcdd1d63725c63f9ca6cf0d1c27d5ac1f83c7d9dcc5b282c0b846e1c1710 [INFO] running `Command { std: "docker" "start" "-a" "731ffcdd1d63725c63f9ca6cf0d1c27d5ac1f83c7d9dcc5b282c0b846e1c1710", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling cc v1.0.77 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling openssl v0.10.42 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling rust_decimal v1.27.0 [INFO] [stderr] Checking once_cell v1.16.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling openssl-sys v0.9.77 [INFO] [stderr] Compiling serde_json v1.0.88 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Compiling rust_decimal_macros v1.27.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking tungstenite v0.16.0 [INFO] [stderr] Checking websocket_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/binance.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::{WebSocket, Message}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Message` [INFO] [stdout] --> src/binance.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use tungstenite::{WebSocket, Message}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/path.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_profitable(&self, map: &HashMap) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/path.rs:33:39 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn calculate_potential(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/path.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_profitable(&self, map: &HashMap) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/path.rs:33:39 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn calculate_potential(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | let (mut socket, _response) = connect( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/path.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let t = Path::load_paths("./trade.paths"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | let (mut socket, _response) = connect( [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_thread` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut second_thread = Arc::clone(&all_tickers); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let start = time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut second_thread = Arc::clone(&all_tickers); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_profitable` and `calculate_potential` are never used [INFO] [stdout] --> src/path.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Path { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn is_profitable(&self, map: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn calculate_potential(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_other_coin` is never used [INFO] [stdout] --> src/ticker.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Ticker { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_other_coin(&self, coin: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_mul` is never used [INFO] [stdout] --> src/money_safe_math.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn safe_mul(num1: &str, num2: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_div` is never used [INFO] [stdout] --> src/money_safe_math.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn safe_div(dividend: &str, divisor: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_thread` [INFO] [stdout] --> src/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut second_thread = Arc::clone(&all_tickers); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let start = time::Instant::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut second_thread = Arc::clone(&all_tickers); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_profitable` and `calculate_potential` are never used [INFO] [stdout] --> src/path.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Path { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn is_profitable(&self, map: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn calculate_potential(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.14s [INFO] running `Command { std: "docker" "inspect" "731ffcdd1d63725c63f9ca6cf0d1c27d5ac1f83c7d9dcc5b282c0b846e1c1710", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "731ffcdd1d63725c63f9ca6cf0d1c27d5ac1f83c7d9dcc5b282c0b846e1c1710", kill_on_drop: false }` [INFO] [stdout] 731ffcdd1d63725c63f9ca6cf0d1c27d5ac1f83c7d9dcc5b282c0b846e1c1710