[INFO] fetching crate matching_engine 0.1.8... [INFO] checking matching_engine-0.1.8 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate matching_engine 0.1.8 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate matching_engine 0.1.8 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate matching_engine 0.1.8 [INFO] finished tweaking crates.io crate matching_engine 0.1.8 [INFO] tweaked toml for crates.io crate matching_engine 0.1.8 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate matching_engine 0.1.8 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bd87a00dd67bab8d795dc2d51cc174144e9a335c51b260ce34d1a6a12cb61c0 [INFO] running `Command { std: "docker" "start" "-a" "5bd87a00dd67bab8d795dc2d51cc174144e9a335c51b260ce34d1a6a12cb61c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bd87a00dd67bab8d795dc2d51cc174144e9a335c51b260ce34d1a6a12cb61c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bd87a00dd67bab8d795dc2d51cc174144e9a335c51b260ce34d1a6a12cb61c0", kill_on_drop: false }` [INFO] [stdout] 5bd87a00dd67bab8d795dc2d51cc174144e9a335c51b260ce34d1a6a12cb61c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 143acb1bec1b08100a2a785693ac479f589bc2dab5b23c6e3f3fbec41c6ad83a [INFO] running `Command { std: "docker" "start" "-a" "143acb1bec1b08100a2a785693ac479f589bc2dab5b23c6e3f3fbec41c6ad83a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.68 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling rustix v0.38.17 [INFO] [stderr] Checking linux-raw-sys v0.4.8 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking aho-corasick v1.1.1 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking encode_unicode v1.0.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex-automata v0.3.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking regex v1.9.6 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking prettytable-rs v0.10.0 [INFO] [stderr] Checking matching_engine v0.1.8 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/matchers/fifo_matcher.rs (4 fixes) [INFO] [stderr] Fixed src/common/utils.rs (2 fixes) [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stderr] Fixed src/model/domain.rs (2 fixes) [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/model/domain.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | let key = &String::from("IBM"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ex_cum_qty` is never read [INFO] [stdout] --> src/matchers/prorata_matcher.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | ex_cum_qty = ex_fill.cum_qty(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sum_of_filled_quantities` and `print_fills` are never used [INFO] [stdout] --> src/matchers/fifo_matcher.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl FIFOMatcher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn sum_of_filled_quantities(&self, fills: &Vec, side: Side) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn print_fills(&self, fills: Vec, side: Side) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/model/domain.rs (7 fixes) [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ex_cum_qty` is never read [INFO] [stdout] --> src/matchers/prorata_matcher.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | ex_cum_qty = ex_fill.cum_qty(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sum_of_filled_quantities` and `print_fills` are never used [INFO] [stdout] --> src/matchers/fifo_matcher.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl FIFOMatcher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn sum_of_filled_quantities(&self, fills: &Vec, side: Side) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn print_fills(&self, fills: Vec, side: Side) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Migrating tests/pro_rata_matcher_tests.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/pro_rata_matcher_tests.rs (1 fix) [INFO] [stderr] Migrating tests/fifo_matcher_tests.rs from 2021 edition to 2024 [INFO] [stderr] Fixed tests/fifo_matcher_tests.rs (1 fix) [INFO] [stdout] warning: unused variable: `client_fills` [INFO] [stdout] --> tests/fifo_matcher_tests.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let client_fills: Vec = fills.clone().into_iter().filter(|f| f.side() == Buy).collect(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_fills` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ex_fills` [INFO] [stdout] --> tests/fifo_matcher_tests.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let ex_fills: Vec = fills.clone().into_iter().filter(|f| f.side() == Sell).collect(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ex_fills` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.43s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking matching_engine v0.1.8 (/tmp/fixit) [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/model/domain.rs:684:9 [INFO] [stdout] | [INFO] [stdout] 684 | debug!("{hash1} {hash2} {hash3}"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 652 + use log::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:654:19 [INFO] [stdout] | [INFO] [stdout] 654 | let ok1 = OrderBookKey::new(101.5, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:655:19 [INFO] [stdout] | [INFO] [stdout] 655 | let ok2 = OrderBookKey::new(101.1, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:656:19 [INFO] [stdout] | [INFO] [stdout] 656 | let ok3 = OrderBookKey::new(101.5, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:664:19 [INFO] [stdout] | [INFO] [stdout] 664 | let ok1 = OrderBookKey::new(101.5, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:665:19 [INFO] [stdout] | [INFO] [stdout] 665 | let ok2 = OrderBookKey::new(101.5, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderBookKey` [INFO] [stdout] --> src/model/domain.rs:666:19 [INFO] [stdout] | [INFO] [stdout] 666 | let ok3 = OrderBookKey::new(101.45, "infy".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `OrderBookKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::OrderBookKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultHasher` [INFO] [stdout] --> src/model/domain.rs:668:26 [INFO] [stdout] | [INFO] [stdout] 668 | let mut hasher = DefaultHasher::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `DefaultHasher` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use std::hash::DefaultHasher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultHasher` [INFO] [stdout] --> src/model/domain.rs:673:18 [INFO] [stdout] | [INFO] [stdout] 673 | hasher = DefaultHasher::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `DefaultHasher` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use std::hash::DefaultHasher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefaultHasher` [INFO] [stdout] --> src/model/domain.rs:678:18 [INFO] [stdout] | [INFO] [stdout] 678 | hasher = DefaultHasher::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `DefaultHasher` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 652 + use std::hash::DefaultHasher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_order_book` in this scope [INFO] [stdout] --> src/model/domain.rs:693:18 [INFO] [stdout] | [INFO] [stdout] 693 | let ob = create_order_book(read_input("test_data/orders.txt")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 652 + use crate::utils::create_order_book; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_input` in this scope [INFO] [stdout] --> src/model/domain.rs:693:36 [INFO] [stdout] | [INFO] [stdout] 693 | let ob = create_order_book(read_input("test_data/orders.txt")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 652 + use crate::utils::read_input; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_order_book` in this scope [INFO] [stdout] --> src/model/domain.rs:702:30 [INFO] [stdout] | [INFO] [stdout] 702 | let mut order_book = create_order_book(read_input("test_data/orders.txt")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 652 + use crate::utils::create_order_book; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_input` in this scope [INFO] [stdout] --> src/model/domain.rs:702:48 [INFO] [stdout] | [INFO] [stdout] 702 | let mut order_book = create_order_book(read_input("test_data/orders.txt")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 652 + use crate::utils::read_input; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FIFOMatcher` in this scope [INFO] [stdout] --> src/model/domain.rs:703:27 [INFO] [stdout] | [INFO] [stdout] 703 | let mut matcher = FIFOMatcher; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 652 + use crate::FIFOMatcher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fill` [INFO] [stdout] --> src/model/domain.rs:705:17 [INFO] [stdout] | [INFO] [stdout] 705 | let s = Fill::pretty_print(&fills); [INFO] [stdout] | ^^^^ use of undeclared type `Fill` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 652 + use crate::model::domain::Fill; [INFO] [stdout] | [INFO] [stdout] 652 + use rand::Fill; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ex_cum_qty` is never read [INFO] [stdout] --> src/matchers/prorata_matcher.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | ex_cum_qty = ex_fill.cum_qty(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ex_cum_qty` is never read [INFO] [stdout] --> src/matchers/prorata_matcher.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | ex_cum_qty = ex_fill.cum_qty(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sum_of_filled_quantities` and `print_fills` are never used [INFO] [stdout] --> src/matchers/fifo_matcher.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl FIFOMatcher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn sum_of_filled_quantities(&self, fills: &Vec, side: Side) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn print_fills(&self, fills: Vec, side: Side) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `matching_engine` (lib test) due to 17 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "143acb1bec1b08100a2a785693ac479f589bc2dab5b23c6e3f3fbec41c6ad83a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "143acb1bec1b08100a2a785693ac479f589bc2dab5b23c6e3f3fbec41c6ad83a", kill_on_drop: false }` [INFO] [stdout] 143acb1bec1b08100a2a785693ac479f589bc2dab5b23c6e3f3fbec41c6ad83a