[INFO] cloning repository https://github.com/drewmudry/rust_trading_platform [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/drewmudry/rust_trading_platform" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrewmudry%2Frust_trading_platform", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrewmudry%2Frust_trading_platform'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c90765a7e0966ee4f2fde6eb97dfa98ca6e8382b [INFO] checking drewmudry/rust_trading_platform against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrewmudry%2Frust_trading_platform" "/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/drewmudry/rust_trading_platform on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/drewmudry/rust_trading_platform [INFO] finished tweaking git repo https://github.com/drewmudry/rust_trading_platform [INFO] tweaked toml for git repo https://github.com/drewmudry/rust_trading_platform written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/drewmudry/rust_trading_platform 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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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 rust_decimal_macros v1.33.1 [INFO] [stderr] Downloaded borsh-derive v1.2.1 [INFO] [stderr] Downloaded borsh v1.2.1 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bb83ffc04c0e7e5ff961803c0def717529a3d747ca3a162017aa284afac6a99 [INFO] running `Command { std: "docker" "start" "-a" "6bb83ffc04c0e7e5ff961803c0def717529a3d747ca3a162017aa284afac6a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bb83ffc04c0e7e5ff961803c0def717529a3d747ca3a162017aa284afac6a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bb83ffc04c0e7e5ff961803c0def717529a3d747ca3a162017aa284afac6a99", kill_on_drop: false }` [INFO] [stdout] 6bb83ffc04c0e7e5ff961803c0def717529a3d747ca3a162017aa284afac6a99 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d71f3a3c4f637326fb646ac2f4b385ae1fa2c2523537f32c4516f51c839872b [INFO] running `Command { std: "docker" "start" "-a" "1d71f3a3c4f637326fb646ac2f4b385ae1fa2c2523537f32c4516f51c839872b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rust_decimal v1.33.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling rust_decimal_macros v1.33.1 [INFO] [stderr] Checking trade_platform v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/matching_engine/engine.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use super::orderbook::{Orderbook, Order, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tests` [INFO] [stdout] --> src/matching_engine/orderbook.rs:139:7 [INFO] [stdout] | [INFO] [stdout] 139 | #[cfg(tests)] [INFO] [stdout] | ^^^^^ help: there is a config with a similar name: `test` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tests)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tests)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatchingEngine` and `TradingPair` [INFO] [stdout] --> src/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use matching_engine::engine::{MatchingEngine, TradingPair}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/matching_engine/engine.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use super::orderbook::{Orderbook, Order, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `tests` [INFO] [stdout] --> src/matching_engine/orderbook.rs:139:7 [INFO] [stdout] | [INFO] [stdout] 139 | #[cfg(tests)] [INFO] [stdout] | ^^^^^ help: there is a config with a similar name: `test` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tests)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tests)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MatchingEngine` and `TradingPair` [INFO] [stdout] --> src/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use matching_engine::engine::{MatchingEngine, TradingPair}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matched_limit` [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let matched_limit = ask_limit.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matched_limit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/matching_engine/engine.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TradingPair{ [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(base: String, quote: String) -> TradingPair{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn to_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchingEngine` is never constructed [INFO] [stdout] --> src/matching_engine/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MatchingEngine{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_new_market`, and `place_limit_order` are never used [INFO] [stdout] --> src/matching_engine/engine.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl MatchingEngine{ [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> MatchingEngine{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn add_new_market(&mut self, pair: TradingPair) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn place_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Orderbook` should have a snake case name [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut Orderbook = Orderbook::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `orderbook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matched_limit` [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let matched_limit = ask_limit.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matched_limit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/matching_engine/engine.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TradingPair{ [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(base: String, quote: String) -> TradingPair{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn to_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatchingEngine` is never constructed [INFO] [stdout] --> src/matching_engine/engine.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MatchingEngine{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_new_market`, and `place_limit_order` are never used [INFO] [stdout] --> src/matching_engine/engine.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl MatchingEngine{ [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> MatchingEngine{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn add_new_market(&mut self, pair: TradingPair) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn place_limit_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Orderbook` should have a snake case name [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut Orderbook = Orderbook::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `orderbook` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.39s [INFO] running `Command { std: "docker" "inspect" "1d71f3a3c4f637326fb646ac2f4b385ae1fa2c2523537f32c4516f51c839872b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d71f3a3c4f637326fb646ac2f4b385ae1fa2c2523537f32c4516f51c839872b", kill_on_drop: false }` [INFO] [stdout] 1d71f3a3c4f637326fb646ac2f4b385ae1fa2c2523537f32c4516f51c839872b