[INFO] cloning repository https://github.com/patelom431/matching-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/patelom431/matching-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatelom431%2Fmatching-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatelom431%2Fmatching-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45a1b94a1ed29a98c258bdd81d6801edbc08dcdd [INFO] building patelom431/matching-engine against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpatelom431%2Fmatching-engine" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/patelom431/matching-engine on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/patelom431/matching-engine [INFO] finished tweaking git repo https://github.com/patelom431/matching-engine [INFO] tweaked toml for git repo https://github.com/patelom431/matching-engine written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/patelom431/matching-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfb9ea9ac8335382fc4ab40ee926feac9ad36eab49caa2dd4baf2ba11f09adcb [INFO] running `Command { std: "docker" "start" "-a" "bfb9ea9ac8335382fc4ab40ee926feac9ad36eab49caa2dd4baf2ba11f09adcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfb9ea9ac8335382fc4ab40ee926feac9ad36eab49caa2dd4baf2ba11f09adcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfb9ea9ac8335382fc4ab40ee926feac9ad36eab49caa2dd4baf2ba11f09adcb", kill_on_drop: false }` [INFO] [stdout] bfb9ea9ac8335382fc4ab40ee926feac9ad36eab49caa2dd4baf2ba11f09adcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a659f88108a3e838eefd3db361d5df0655576e70f5f4f14ee5d8e76fe66401b [INFO] running `Command { std: "docker" "start" "-a" "2a659f88108a3e838eefd3db361d5df0655576e70f5f4f14ee5d8e76fe66401b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling rust_decimal_macros v1.36.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling matching-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OrderSide` [INFO] [stdout] --> src/engine/engine.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::engine::order::{Order, OrderSide}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/engine/orderbook.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/engine/orderbook.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn cancel_order(&mut self, order_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_product_orderbook` and `withdraw` are never used [INFO] [stdout] --> src/engine/engine.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl MatchingEngine { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_product_orderbook(&mut self, product: &Product) -> Option<&mut OrderBook> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn withdraw(&mut self, account_id: String, currency: String, amount: Decimal) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/engine/account.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/account.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Account { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | pub fn new(email: String) -> Account { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `REJECTED` and `EXPIRED` are never constructed [INFO] [stdout] --> src/engine/order.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum OrderStatus { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | REJECTED, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | EXPIRED, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BalancesMap` is never used [INFO] [stdout] --> src/engine/orderbook.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type BalancesMap = HashMap>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order`, `market_price`, `buy_volume`, and `sell_volume` are never used [INFO] [stdout] --> src/engine/orderbook.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn cancel_order(&mut self, order_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn market_price(&self, side: OrderSide) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn buy_volume(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn sell_volume(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.11s [INFO] running `Command { std: "docker" "inspect" "2a659f88108a3e838eefd3db361d5df0655576e70f5f4f14ee5d8e76fe66401b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a659f88108a3e838eefd3db361d5df0655576e70f5f4f14ee5d8e76fe66401b", kill_on_drop: false }` [INFO] [stdout] 2a659f88108a3e838eefd3db361d5df0655576e70f5f4f14ee5d8e76fe66401b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51f8714f4f522b0d177b8c747bd7d3d11a53ca070fb2f237df2cf10204ceece9 [INFO] running `Command { std: "docker" "start" "-a" "51f8714f4f522b0d177b8c747bd7d3d11a53ca070fb2f237df2cf10204ceece9", kill_on_drop: false }` [INFO] [stderr] Compiling matching-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OrderSide` [INFO] [stdout] --> src/engine/engine.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::engine::order::{Order, OrderSide}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/engine/orderbook.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/engine/orderbook.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn cancel_order(&mut self, order_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_product_orderbook` and `withdraw` are never used [INFO] [stdout] --> src/engine/engine.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl MatchingEngine { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_product_orderbook(&mut self, product: &Product) -> Option<&mut OrderBook> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn withdraw(&mut self, account_id: String, currency: String, amount: Decimal) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/engine/account.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/account.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Account { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | pub fn new(email: String) -> Account { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `REJECTED` and `EXPIRED` are never constructed [INFO] [stdout] --> src/engine/order.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum OrderStatus { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | REJECTED, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | EXPIRED, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BalancesMap` is never used [INFO] [stdout] --> src/engine/orderbook.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type BalancesMap = HashMap>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order`, `market_price`, `buy_volume`, and `sell_volume` are never used [INFO] [stdout] --> src/engine/orderbook.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn cancel_order(&mut self, order_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn market_price(&self, side: OrderSide) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn buy_volume(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn sell_volume(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s [INFO] running `Command { std: "docker" "inspect" "51f8714f4f522b0d177b8c747bd7d3d11a53ca070fb2f237df2cf10204ceece9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51f8714f4f522b0d177b8c747bd7d3d11a53ca070fb2f237df2cf10204ceece9", kill_on_drop: false }` [INFO] [stdout] 51f8714f4f522b0d177b8c747bd7d3d11a53ca070fb2f237df2cf10204ceece9