[INFO] cloning repository https://github.com/falila/trading-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/falila/trading-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e9a046213cfdbb07bc3306abfe1f3e3174c8544 [INFO] checking falila/trading-engine against try#595142ec72045c7f2fab2923de8e59995a52e6e7 for pr-151830 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/falila/trading-engine [INFO] finished tweaking git repo https://github.com/falila/trading-engine [INFO] tweaked toml for git repo https://github.com/falila/trading-engine written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/falila/trading-engine on toolchain 595142ec72045c7f2fab2923de8e59995a52e6e7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/falila/trading-engine 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" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking falila/trading-engine against try#595142ec72045c7f2fab2923de8e59995a52e6e7 for pr-151830 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/falila/trading-engine [INFO] finished tweaking git repo https://github.com/falila/trading-engine [INFO] tweaked toml for git repo https://github.com/falila/trading-engine written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/falila/trading-engine on toolchain 595142ec72045c7f2fab2923de8e59995a52e6e7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/falila/trading-engine 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" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ordered-float v4.2.0 [INFO] [stderr] Downloaded rust_decimal_macros v1.34.2 [INFO] [stderr] Downloaded borsh-derive v1.4.0 [INFO] [stderr] Downloaded borsh v1.4.0 [INFO] [stderr] Downloaded rust_decimal v1.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc83e06900a02ca750500e54ee20c04300058bc39a1beb780b17710b1a99ba63 [INFO] running `Command { std: "docker" "start" "-a" "cc83e06900a02ca750500e54ee20c04300058bc39a1beb780b17710b1a99ba63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc83e06900a02ca750500e54ee20c04300058bc39a1beb780b17710b1a99ba63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc83e06900a02ca750500e54ee20c04300058bc39a1beb780b17710b1a99ba63", kill_on_drop: false }` [INFO] [stdout] cc83e06900a02ca750500e54ee20c04300058bc39a1beb780b17710b1a99ba63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbe9772437bde732500272a43f77bf8c001589f4bd83833bfaf669cc638ba5c6 [INFO] running `Command { std: "docker" "start" "-a" "bbe9772437bde732500272a43f77bf8c001589f4bd83833bfaf669cc638ba5c6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking ordered-float v4.2.0 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Compiling rust_decimal_macros v1.34.2 [INFO] [stderr] Checking trading-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/corelib/amm.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/corelib/amm.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/corelib/amm.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut wallet_pairs = self [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_token` is assigned to, but never used [INFO] [stdout] --> src/corelib/amm.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut current_token = token_in; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_current_token` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_token` is never read [INFO] [stdout] --> src/corelib/amm.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | current_token = token_b; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/corelib/engine.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | token_in: TokenTicker, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/corelib/engine.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | token_out: TokenTicker, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_in` [INFO] [stdout] --> src/corelib/engine.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | amount_in: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_a` [INFO] [stdout] --> src/corelib/engine.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | token_a: TokenTicker, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_a` [INFO] [stdout] --> src/corelib/engine.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | amount_a: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_b` [INFO] [stdout] --> src/corelib/engine.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | token_b: TokenTicker, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_b` [INFO] [stdout] --> src/corelib/engine.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | amount_b: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_ratio` [INFO] [stdout] --> src/corelib/engine.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | target_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tolerance` [INFO] [stdout] --> src/corelib/engine.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | tolerance: f64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tolerance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_lp_per_pair` is never read [INFO] [stdout] --> src/corelib/amm.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AMMPool { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 7 | liquidity_pools: HashMap, [INFO] [stdout] 8 | total_lp_per_pair: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Infatrusture` found for enum `Category` in the current scope [INFO] [stdout] --> src/corelib/engine.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | Category::Infatrusture, [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `Category` [INFO] [stdout] | [INFO] [stdout] ::: src/corelib/token.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum Category { [INFO] [stdout] | ----------------- variant or associated item `Infatrusture` not found for this enum [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 146 - Category::Infatrusture, [INFO] [stdout] 146 + Category::Infrastructure, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Infatrusture` found for enum `Category` in the current scope [INFO] [stdout] --> src/corelib/engine.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | Category::Infatrusture, [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `Category` [INFO] [stdout] | [INFO] [stdout] ::: src/corelib/token.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum Category { [INFO] [stdout] | ----------------- variant or associated item `Infatrusture` not found for this enum [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 218 - Category::Infatrusture, [INFO] [stdout] 218 + Category::Infrastructure, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Coinbase` found for enum `CryptoExchange` in the current scope [INFO] [stdout] --> src/corelib/engine.rs:219:49 [INFO] [stdout] | [INFO] [stdout] 219 | Market::OtherMarket(CryptoExchange::Coinbase), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `CryptoExchange` [INFO] [stdout] | [INFO] [stdout] ::: src/corelib/token.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum CryptoExchange { [INFO] [stdout] | ----------------------- variant or associated item `Coinbase` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/corelib/amm.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut wallet_pairs = self [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_token` is assigned to, but never used [INFO] [stdout] --> src/corelib/amm.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut current_token = token_in; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_current_token` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_token` is never read [INFO] [stdout] --> src/corelib/amm.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | current_token = token_b; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/corelib/engine.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | token_in: TokenTicker, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/corelib/engine.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | token_out: TokenTicker, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_in` [INFO] [stdout] --> src/corelib/engine.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | amount_in: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_a` [INFO] [stdout] --> src/corelib/engine.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | token_a: TokenTicker, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_a` [INFO] [stdout] --> src/corelib/engine.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | amount_a: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_b` [INFO] [stdout] --> src/corelib/engine.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | token_b: TokenTicker, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_b` [INFO] [stdout] --> src/corelib/engine.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | amount_b: u64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_ratio` [INFO] [stdout] --> src/corelib/engine.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | target_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tolerance` [INFO] [stdout] --> src/corelib/engine.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | tolerance: f64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tolerance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trading-engine` (lib test) due to 3 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bbe9772437bde732500272a43f77bf8c001589f4bd83833bfaf669cc638ba5c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbe9772437bde732500272a43f77bf8c001589f4bd83833bfaf669cc638ba5c6", kill_on_drop: false }` [INFO] [stdout] bbe9772437bde732500272a43f77bf8c001589f4bd83833bfaf669cc638ba5c6