[INFO] fetching crate luminengine 0.2.3... [INFO] testing luminengine-0.2.3 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate luminengine 0.2.3 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate luminengine 0.2.3 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate luminengine 0.2.3 [INFO] tweaked toml for crates.io crate luminengine 0.2.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate luminengine 0.2.3 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate luminengine 0.2.3 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-strings v0.5.0 [INFO] [stderr] Downloaded crossbeam v0.8.4 [INFO] [stderr] Downloaded windows-result v0.4.0 [INFO] [stderr] Downloaded windows-implement v0.60.1 [INFO] [stderr] Downloaded windows-interface v0.59.2 [INFO] [stderr] Downloaded atomic-plus v0.1.1 [INFO] [stderr] Downloaded priority-queue v1.4.0 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded libc v0.2.176 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75e69e4d4a79df0b88339fee9bbf3abc2cf5e63c3dbdbee86502ffd2b9f7f3f6 [INFO] running `Command { std: "docker" "start" "-a" "75e69e4d4a79df0b88339fee9bbf3abc2cf5e63c3dbdbee86502ffd2b9f7f3f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75e69e4d4a79df0b88339fee9bbf3abc2cf5e63c3dbdbee86502ffd2b9f7f3f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75e69e4d4a79df0b88339fee9bbf3abc2cf5e63c3dbdbee86502ffd2b9f7f3f6", kill_on_drop: false }` [INFO] [stdout] 75e69e4d4a79df0b88339fee9bbf3abc2cf5e63c3dbdbee86502ffd2b9f7f3f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4217f98ffa52d92eebc3904f6070ce4a052020ac35067c7695c2292b7ad3b589 [INFO] running `Command { std: "docker" "start" "-a" "4217f98ffa52d92eebc3904f6070ce4a052020ac35067c7695c2292b7ad3b589", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling atomic-plus v0.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling luminengine v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/orderbook/mod.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [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 variable: `current_qty` [INFO] [stdout] --> src/matcher/iceberg.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_qty = order.quantity.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_qty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/matcher/mod.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let guard = &epoch::pin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `processed_count` is assigned to, but never used [INFO] [stdout] --> src/orderbook/mod.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut processed_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_processed_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `processed_count` is never read [INFO] [stdout] --> src/orderbook/mod.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | ... processed_count += 1; [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: `i` [INFO] [stdout] --> src/orderbook/mod.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for i in 0..num_processors { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_bid` [INFO] [stdout] --> src/orderbook/mod.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | is_bid: bool, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_bid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::add_order` [INFO] [stdout] --> src/matcher/mod.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | / fn add_order( [INFO] [stdout] 110 | | &self, [INFO] [stdout] 111 | | order: Arc, [INFO] [stdout] 112 | | price: u64, [INFO] [stdout] 113 | | is_bid: bool, [INFO] [stdout] 114 | | engine: &MatchEngine, [INFO] [stdout] 115 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::process_matching` [INFO] [stdout] --> src/matcher/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | / fn process_matching( [INFO] [stdout] 119 | | &self, [INFO] [stdout] 120 | | engine: &MatchEngine, [INFO] [stdout] 121 | | bids: &OrderTree, [INFO] [stdout] 122 | | asks: &OrderTree, [INFO] [stdout] 123 | | symbol: &Arc, [INFO] [stdout] 124 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PriceLevelMatcher` is more private than the item `MatchEngine::get_price_matchers` [INFO] [stdout] --> src/matcher/mod.rs:564:5 [INFO] [stdout] | [INFO] [stdout] 564 | / pub fn get_price_matchers( [INFO] [stdout] 565 | | &self, [INFO] [stdout] 566 | | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | |______________________________________________________________________^ method `MatchEngine::get_price_matchers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PriceLevelMatcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/matcher/mod.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/day.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn add_order( [INFO] [stdout] 13 | | &self, [INFO] [stdout] 14 | | order: Arc, [INFO] [stdout] 15 | | price: u64, [INFO] [stdout] 16 | | is_bid: bool, [INFO] [stdout] 17 | | engine: &MatchEngine, [INFO] [stdout] 18 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/day.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/gtc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | price: u64, [INFO] [stdout] 17 | | is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/gtc.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/iceberg.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/iceberg.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / fn process_matching( [INFO] [stdout] 39 | | &self, [INFO] [stdout] 40 | | engine: &MatchEngine, [INFO] [stdout] 41 | | bids: &OrderTree, [INFO] [stdout] 42 | | asks: &OrderTree, [INFO] [stdout] 43 | | symbol: &Arc, [INFO] [stdout] 44 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/ioc_fok.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | _price: u64, [INFO] [stdout] 19 | | _is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/ioc_fok.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/limit.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/limit.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_match` [INFO] [stdout] --> src/matcher/limit.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / pub fn execute_match( [INFO] [stdout] 185 | | &self, [INFO] [stdout] 186 | | engine: &MatchEngine, [INFO] [stdout] 187 | | aggressive: &Arc, [INFO] [stdout] ... | [INFO] [stdout] 194 | | is_cross: bool, [INFO] [stdout] 195 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_match` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_cross_matching` [INFO] [stdout] --> src/matcher/limit.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | / pub fn execute_cross_matching( [INFO] [stdout] 246 | | &self, [INFO] [stdout] 247 | | engine: &MatchEngine, [INFO] [stdout] 248 | | bids: &OrderTree, [INFO] [stdout] ... | [INFO] [stdout] 252 | | best_ask: u64, [INFO] [stdout] 253 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_cross_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/market.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / fn add_order( [INFO] [stdout] 17 | | &self, [INFO] [stdout] 18 | | order: Arc, [INFO] [stdout] 19 | | _price: u64, [INFO] [stdout] 20 | | _is_bid: bool, [INFO] [stdout] 21 | | engine: &MatchEngine, [INFO] [stdout] 22 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/market.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fn process_matching( [INFO] [stdout] 29 | | &self, [INFO] [stdout] 30 | | engine: &MatchEngine, [INFO] [stdout] 31 | | bids: &OrderTree, [INFO] [stdout] 32 | | asks: &OrderTree, [INFO] [stdout] 33 | | symbol: &Arc, [INFO] [stdout] 34 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop_limit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop_limit.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `last_match_time` are never read [INFO] [stdout] --> src/matcher/mod.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 223 | price: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | last_match_time: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceLevelMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/matcher/mod.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl MatchEngine { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn execute_single_match( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn process_order(&self, order: Arc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 552 | pub fn get_iceberg_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | pub fn get_price_matchers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 576 | pub fn get_stats_ref(&self) -> &MatchStats { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_iceberg_order` is never used [INFO] [stdout] --> src/matcher/iceberg.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl IcebergOrderHandler { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | fn update_iceberg_order(&self, engine: &MatchEngine, order: &Arc, matched_qty: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:527:37 [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard<'_, VecDeque> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:532:35 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:537:33 [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:542:39 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:547:38 [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard<'_, Vec>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:559:27 [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:565:9 [INFO] [stdout] | [INFO] [stdout] 565 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.80s [INFO] running `Command { std: "docker" "inspect" "4217f98ffa52d92eebc3904f6070ce4a052020ac35067c7695c2292b7ad3b589", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4217f98ffa52d92eebc3904f6070ce4a052020ac35067c7695c2292b7ad3b589", kill_on_drop: false }` [INFO] [stdout] 4217f98ffa52d92eebc3904f6070ce4a052020ac35067c7695c2292b7ad3b589 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4159ac59a83cb5371537ce763eb7fb97802d80dbf897acc906cea9806963482 [INFO] running `Command { std: "docker" "start" "-a" "d4159ac59a83cb5371537ce763eb7fb97802d80dbf897acc906cea9806963482", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/orderbook/mod.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [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 variable: `current_qty` [INFO] [stdout] --> src/matcher/iceberg.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_qty = order.quantity.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_qty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/matcher/mod.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let guard = &epoch::pin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `processed_count` is assigned to, but never used [INFO] [stdout] --> src/orderbook/mod.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut processed_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_processed_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `processed_count` is never read [INFO] [stdout] --> src/orderbook/mod.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | ... processed_count += 1; [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: `i` [INFO] [stdout] --> src/orderbook/mod.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for i in 0..num_processors { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_bid` [INFO] [stdout] --> src/orderbook/mod.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | is_bid: bool, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_bid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::add_order` [INFO] [stdout] --> src/matcher/mod.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | / fn add_order( [INFO] [stdout] 110 | | &self, [INFO] [stdout] 111 | | order: Arc, [INFO] [stdout] 112 | | price: u64, [INFO] [stdout] 113 | | is_bid: bool, [INFO] [stdout] 114 | | engine: &MatchEngine, [INFO] [stdout] 115 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::process_matching` [INFO] [stdout] --> src/matcher/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | / fn process_matching( [INFO] [stdout] 119 | | &self, [INFO] [stdout] 120 | | engine: &MatchEngine, [INFO] [stdout] 121 | | bids: &OrderTree, [INFO] [stdout] 122 | | asks: &OrderTree, [INFO] [stdout] 123 | | symbol: &Arc, [INFO] [stdout] 124 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PriceLevelMatcher` is more private than the item `MatchEngine::get_price_matchers` [INFO] [stdout] --> src/matcher/mod.rs:564:5 [INFO] [stdout] | [INFO] [stdout] 564 | / pub fn get_price_matchers( [INFO] [stdout] 565 | | &self, [INFO] [stdout] 566 | | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | |______________________________________________________________________^ method `MatchEngine::get_price_matchers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PriceLevelMatcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/matcher/mod.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/day.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn add_order( [INFO] [stdout] 13 | | &self, [INFO] [stdout] 14 | | order: Arc, [INFO] [stdout] 15 | | price: u64, [INFO] [stdout] 16 | | is_bid: bool, [INFO] [stdout] 17 | | engine: &MatchEngine, [INFO] [stdout] 18 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/day.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/gtc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | price: u64, [INFO] [stdout] 17 | | is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/gtc.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/iceberg.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/iceberg.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / fn process_matching( [INFO] [stdout] 39 | | &self, [INFO] [stdout] 40 | | engine: &MatchEngine, [INFO] [stdout] 41 | | bids: &OrderTree, [INFO] [stdout] 42 | | asks: &OrderTree, [INFO] [stdout] 43 | | symbol: &Arc, [INFO] [stdout] 44 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/ioc_fok.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | _price: u64, [INFO] [stdout] 19 | | _is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/ioc_fok.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/limit.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/limit.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_match` [INFO] [stdout] --> src/matcher/limit.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / pub fn execute_match( [INFO] [stdout] 185 | | &self, [INFO] [stdout] 186 | | engine: &MatchEngine, [INFO] [stdout] 187 | | aggressive: &Arc, [INFO] [stdout] ... | [INFO] [stdout] 194 | | is_cross: bool, [INFO] [stdout] 195 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_match` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_cross_matching` [INFO] [stdout] --> src/matcher/limit.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | / pub fn execute_cross_matching( [INFO] [stdout] 246 | | &self, [INFO] [stdout] 247 | | engine: &MatchEngine, [INFO] [stdout] 248 | | bids: &OrderTree, [INFO] [stdout] ... | [INFO] [stdout] 252 | | best_ask: u64, [INFO] [stdout] 253 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_cross_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/market.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / fn add_order( [INFO] [stdout] 17 | | &self, [INFO] [stdout] 18 | | order: Arc, [INFO] [stdout] 19 | | _price: u64, [INFO] [stdout] 20 | | _is_bid: bool, [INFO] [stdout] 21 | | engine: &MatchEngine, [INFO] [stdout] 22 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/market.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fn process_matching( [INFO] [stdout] 29 | | &self, [INFO] [stdout] 30 | | engine: &MatchEngine, [INFO] [stdout] 31 | | bids: &OrderTree, [INFO] [stdout] 32 | | asks: &OrderTree, [INFO] [stdout] 33 | | symbol: &Arc, [INFO] [stdout] 34 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop_limit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop_limit.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `last_match_time` are never read [INFO] [stdout] --> src/matcher/mod.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 223 | price: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | last_match_time: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceLevelMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/matcher/mod.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl MatchEngine { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn execute_single_match( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn process_order(&self, order: Arc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 552 | pub fn get_iceberg_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | pub fn get_price_matchers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 576 | pub fn get_stats_ref(&self) -> &MatchStats { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_iceberg_order` is never used [INFO] [stdout] --> src/matcher/iceberg.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl IcebergOrderHandler { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | fn update_iceberg_order(&self, engine: &MatchEngine, order: &Arc, matched_qty: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:527:37 [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard<'_, VecDeque> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:532:35 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:537:33 [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:542:39 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:547:38 [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard<'_, Vec>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:559:27 [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:565:9 [INFO] [stdout] | [INFO] [stdout] 565 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling luminengine v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> tests/basic_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> tests/basic_test.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> tests/basic_test.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> tests/basic_test.rs:390:31 [INFO] [stdout] | [INFO] [stdout] 390 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> tests/basic_test.rs:417:31 [INFO] [stdout] | [INFO] [stdout] 417 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> tests/basic_test.rs:171:44 [INFO] [stdout] | [INFO] [stdout] 171 | let direction = if rng.gen_bool(0.5) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:179:29 [INFO] [stdout] | [INFO] [stdout] 179 | rng.gen_range(45000.0..45500.0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | rng.gen_range(45600.0..46000.0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:184:40 [INFO] [stdout] | [INFO] [stdout] 184 | let quantity = rng.gen_range(0.1..5.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 393 | let price = rng.gen_range(45000.0..45200.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:394:40 [INFO] [stdout] | [INFO] [stdout] 394 | let quantity = rng.gen_range(0.1..5.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:420:37 [INFO] [stdout] | [INFO] [stdout] 420 | let price = rng.gen_range(45250.0..45500.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/basic_test.rs:421:40 [INFO] [stdout] | [INFO] [stdout] 421 | let quantity = rng.gen_range(0.1..3.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_screen` is never used [INFO] [stdout] --> tests/basic_test.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn clear_screen() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/orderbook/mod.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, Instant}; [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: `super::*` [INFO] [stdout] --> tests/order_test_1.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [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 variable: `current_qty` [INFO] [stdout] --> src/matcher/iceberg.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_qty = order.quantity.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_qty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guard` [INFO] [stdout] --> src/matcher/mod.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let guard = &epoch::pin(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `processed_count` is assigned to, but never used [INFO] [stdout] --> src/orderbook/mod.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut processed_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_processed_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `processed_count` is never read [INFO] [stdout] --> src/orderbook/mod.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 100 | ... processed_count += 1; [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: `i` [INFO] [stdout] --> src/orderbook/mod.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | for i in 0..num_processors { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_bid` [INFO] [stdout] --> src/orderbook/mod.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | is_bid: bool, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_bid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> tests/order_test_2.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::add_order` [INFO] [stdout] --> src/matcher/mod.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | / fn add_order( [INFO] [stdout] 110 | | &self, [INFO] [stdout] 111 | | order: Arc, [INFO] [stdout] 112 | | price: u64, [INFO] [stdout] 113 | | is_bid: bool, [INFO] [stdout] 114 | | engine: &MatchEngine, [INFO] [stdout] 115 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `OrderHandler::process_matching` [INFO] [stdout] --> src/matcher/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | / fn process_matching( [INFO] [stdout] 119 | | &self, [INFO] [stdout] 120 | | engine: &MatchEngine, [INFO] [stdout] 121 | | bids: &OrderTree, [INFO] [stdout] 122 | | asks: &OrderTree, [INFO] [stdout] 123 | | symbol: &Arc, [INFO] [stdout] 124 | | ) -> Result<(), String>; [INFO] [stdout] | |____________________________^ method `OrderHandler::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PriceLevelMatcher` is more private than the item `MatchEngine::get_price_matchers` [INFO] [stdout] --> src/matcher/mod.rs:564:5 [INFO] [stdout] | [INFO] [stdout] 564 | / pub fn get_price_matchers( [INFO] [stdout] 565 | | &self, [INFO] [stdout] 566 | | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | |______________________________________________________________________^ method `MatchEngine::get_price_matchers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PriceLevelMatcher` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/matcher/mod.rs:222:1 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/day.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn add_order( [INFO] [stdout] 13 | | &self, [INFO] [stdout] 14 | | order: Arc, [INFO] [stdout] 15 | | price: u64, [INFO] [stdout] 16 | | is_bid: bool, [INFO] [stdout] 17 | | engine: &MatchEngine, [INFO] [stdout] 18 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/day.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/gtc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | price: u64, [INFO] [stdout] 17 | | is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/gtc.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/iceberg.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/iceberg.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / fn process_matching( [INFO] [stdout] 39 | | &self, [INFO] [stdout] 40 | | engine: &MatchEngine, [INFO] [stdout] 41 | | bids: &OrderTree, [INFO] [stdout] 42 | | asks: &OrderTree, [INFO] [stdout] 43 | | symbol: &Arc, [INFO] [stdout] 44 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/ioc_fok.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | _price: u64, [INFO] [stdout] 19 | | _is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/ioc_fok.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / fn process_matching( [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | engine: &MatchEngine, [INFO] [stdout] 30 | | bids: &OrderTree, [INFO] [stdout] 31 | | asks: &OrderTree, [INFO] [stdout] 32 | | symbol: &Arc, [INFO] [stdout] 33 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/limit.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | / fn add_order( [INFO] [stdout] 16 | | &self, [INFO] [stdout] 17 | | order: Arc, [INFO] [stdout] 18 | | price: u64, [INFO] [stdout] 19 | | is_bid: bool, [INFO] [stdout] 20 | | engine: &MatchEngine, [INFO] [stdout] 21 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/limit.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / fn process_matching( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | engine: &MatchEngine, [INFO] [stdout] 33 | | bids: &OrderTree, [INFO] [stdout] 34 | | asks: &OrderTree, [INFO] [stdout] 35 | | symbol: &Arc, [INFO] [stdout] 36 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_match` [INFO] [stdout] --> src/matcher/limit.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | / pub fn execute_match( [INFO] [stdout] 185 | | &self, [INFO] [stdout] 186 | | engine: &MatchEngine, [INFO] [stdout] 187 | | aggressive: &Arc, [INFO] [stdout] ... | [INFO] [stdout] 194 | | is_cross: bool, [INFO] [stdout] 195 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_match` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_cross_matching` [INFO] [stdout] --> src/matcher/limit.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | / pub fn execute_cross_matching( [INFO] [stdout] 246 | | &self, [INFO] [stdout] 247 | | engine: &MatchEngine, [INFO] [stdout] 248 | | bids: &OrderTree, [INFO] [stdout] ... | [INFO] [stdout] 252 | | best_ask: u64, [INFO] [stdout] 253 | | ) { [INFO] [stdout] | |_____^ method `LimitOrderHandler::execute_cross_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/market.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / fn add_order( [INFO] [stdout] 17 | | &self, [INFO] [stdout] 18 | | order: Arc, [INFO] [stdout] 19 | | _price: u64, [INFO] [stdout] 20 | | _is_bid: bool, [INFO] [stdout] 21 | | engine: &MatchEngine, [INFO] [stdout] 22 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/market.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / fn process_matching( [INFO] [stdout] 29 | | &self, [INFO] [stdout] 30 | | engine: &MatchEngine, [INFO] [stdout] 31 | | bids: &OrderTree, [INFO] [stdout] 32 | | asks: &OrderTree, [INFO] [stdout] 33 | | symbol: &Arc, [INFO] [stdout] 34 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stdout] --> src/matcher/stop_limit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / fn add_order( [INFO] [stdout] 14 | | &self, [INFO] [stdout] 15 | | order: Arc, [INFO] [stdout] 16 | | _price: u64, [INFO] [stdout] 17 | | _is_bid: bool, [INFO] [stdout] 18 | | engine: &MatchEngine, [INFO] [stdout] 19 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stdout] --> src/matcher/stop_limit.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / fn process_matching( [INFO] [stdout] 26 | | &self, [INFO] [stdout] 27 | | engine: &MatchEngine, [INFO] [stdout] 28 | | bids: &OrderTree, [INFO] [stdout] 29 | | asks: &OrderTree, [INFO] [stdout] 30 | | symbol: &Arc, [INFO] [stdout] 31 | | ) -> Result<(), String> { [INFO] [stdout] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/matcher/mod.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub(crate) struct MatchEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `last_match_time` are never read [INFO] [stdout] --> src/matcher/mod.rs:223:5 [INFO] [stdout] | [INFO] [stdout] 222 | struct PriceLevelMatcher { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 223 | price: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | last_match_time: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceLevelMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/matcher/mod.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl MatchEngine { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 416 | pub fn execute_single_match( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn process_order(&self, order: Arc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 552 | pub fn get_iceberg_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | pub fn get_price_matchers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 576 | pub fn get_stats_ref(&self) -> &MatchStats { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_iceberg_order` is never used [INFO] [stdout] --> src/matcher/iceberg.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl IcebergOrderHandler { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | fn update_iceberg_order(&self, engine: &MatchEngine, order: &Arc, matched_qty: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:527:37 [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard<'_, VecDeque> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:532:35 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:537:33 [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:542:39 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:547:38 [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard<'_, Vec>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 554 | ) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:559:27 [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/matcher/mod.rs:565:9 [INFO] [stdout] | [INFO] [stdout] 565 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 566 | ) -> parking_lot::RwLockReadGuard<'_, HashMap> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/order_test_2.rs:234:48 [INFO] [stdout] | [INFO] [stdout] 234 | let order_type = match rng.gen_range(0..100) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stdout] --> tests/order_test_2.rs:246:44 [INFO] [stdout] | [INFO] [stdout] 246 | let direction = if rng.gen_bool(0.5) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/order_test_2.rs:255:29 [INFO] [stdout] | [INFO] [stdout] 255 | rng.gen_range(100.0..200.0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> tests/order_test_2.rs:258:40 [INFO] [stdout] | [INFO] [stdout] 258 | let quantity = rng.gen_range(1.0..1000.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/order_test_2.rs:32:57 [INFO] [stdout] | [INFO] [stdout] 32 | orderbook_for_callback.set_match_callback(move |result| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errors_gen` [INFO] [stdout] --> tests/order_test_2.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let errors_gen = errors.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_errors_gen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread_id` [INFO] [stdout] --> tests/order_test_2.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | for thread_id in 0..num_processor_threads { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wait_start` [INFO] [stdout] --> tests/order_test_2.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let wait_start = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wait_sec` [INFO] [stdout] --> tests/order_test_2.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | for wait_sec in 1..=10 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.33s [INFO] running `Command { std: "docker" "inspect" "d4159ac59a83cb5371537ce763eb7fb97802d80dbf897acc906cea9806963482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4159ac59a83cb5371537ce763eb7fb97802d80dbf897acc906cea9806963482", kill_on_drop: false }` [INFO] [stdout] d4159ac59a83cb5371537ce763eb7fb97802d80dbf897acc906cea9806963482 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0655588ca80c0dce019d739cf7b9e50c5ff27700158317c223d1243f6e0837b8 [INFO] running `Command { std: "docker" "start" "-a" "0655588ca80c0dce019d739cf7b9e50c5ff27700158317c223d1243f6e0837b8", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Instant` [INFO] [stderr] --> src/orderbook/mod.rs:10:27 [INFO] [stderr] | [INFO] [stderr] 10 | use std::time::{Duration, Instant}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current_qty` [INFO] [stderr] --> src/matcher/iceberg.rs:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | let current_qty = order.quantity.load(Ordering::Relaxed); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_qty` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `guard` [INFO] [stderr] --> src/matcher/mod.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | let guard = &epoch::pin(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guard` [INFO] [stderr] [INFO] [stderr] warning: variable `processed_count` is assigned to, but never used [INFO] [stderr] --> src/orderbook/mod.rs:87:21 [INFO] [stderr] | [INFO] [stderr] 87 | let mut processed_count = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_processed_count` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `processed_count` is never read [INFO] [stderr] --> src/orderbook/mod.rs:100:29 [INFO] [stderr] | [INFO] [stderr] 100 | ... processed_count += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/orderbook/mod.rs:79:13 [INFO] [stderr] | [INFO] [stderr] 79 | for i in 0..num_processors { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_bid` [INFO] [stderr] --> src/orderbook/mod.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | is_bid: bool, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_bid` [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `OrderHandler::add_order` [INFO] [stderr] --> src/matcher/mod.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 109 | / fn add_order( [INFO] [stderr] 110 | | &self, [INFO] [stderr] 111 | | order: Arc, [INFO] [stderr] 112 | | price: u64, [INFO] [stderr] 113 | | is_bid: bool, [INFO] [stderr] 114 | | engine: &MatchEngine, [INFO] [stderr] 115 | | ) -> Result<(), String>; [INFO] [stderr] | |____________________________^ method `OrderHandler::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `OrderHandler::process_matching` [INFO] [stderr] --> src/matcher/mod.rs:118:5 [INFO] [stderr] | [INFO] [stderr] 118 | / fn process_matching( [INFO] [stderr] 119 | | &self, [INFO] [stderr] 120 | | engine: &MatchEngine, [INFO] [stderr] 121 | | bids: &OrderTree, [INFO] [stderr] 122 | | asks: &OrderTree, [INFO] [stderr] 123 | | symbol: &Arc, [INFO] [stderr] 124 | | ) -> Result<(), String>; [INFO] [stderr] | |____________________________^ method `OrderHandler::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `PriceLevelMatcher` is more private than the item `MatchEngine::get_price_matchers` [INFO] [stderr] --> src/matcher/mod.rs:564:5 [INFO] [stderr] | [INFO] [stderr] 564 | / pub fn get_price_matchers( [INFO] [stderr] 565 | | &self, [INFO] [stderr] 566 | | ) -> parking_lot::RwLockReadGuard> { [INFO] [stderr] | |______________________________________________________________________^ method `MatchEngine::get_price_matchers` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `PriceLevelMatcher` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/matcher/mod.rs:222:1 [INFO] [stderr] | [INFO] [stderr] 222 | struct PriceLevelMatcher { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/day.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | / fn add_order( [INFO] [stderr] 13 | | &self, [INFO] [stderr] 14 | | order: Arc, [INFO] [stderr] 15 | | price: u64, [INFO] [stderr] 16 | | is_bid: bool, [INFO] [stderr] 17 | | engine: &MatchEngine, [INFO] [stderr] 18 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/day.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | / fn process_matching( [INFO] [stderr] 31 | | &self, [INFO] [stderr] 32 | | engine: &MatchEngine, [INFO] [stderr] 33 | | bids: &OrderTree, [INFO] [stderr] 34 | | asks: &OrderTree, [INFO] [stderr] 35 | | symbol: &Arc, [INFO] [stderr] 36 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/gtc.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | / fn add_order( [INFO] [stderr] 14 | | &self, [INFO] [stderr] 15 | | order: Arc, [INFO] [stderr] 16 | | price: u64, [INFO] [stderr] 17 | | is_bid: bool, [INFO] [stderr] 18 | | engine: &MatchEngine, [INFO] [stderr] 19 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/gtc.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | / fn process_matching( [INFO] [stderr] 28 | | &self, [INFO] [stderr] 29 | | engine: &MatchEngine, [INFO] [stderr] 30 | | bids: &OrderTree, [INFO] [stderr] 31 | | asks: &OrderTree, [INFO] [stderr] 32 | | symbol: &Arc, [INFO] [stderr] 33 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/iceberg.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / fn add_order( [INFO] [stderr] 16 | | &self, [INFO] [stderr] 17 | | order: Arc, [INFO] [stderr] 18 | | price: u64, [INFO] [stderr] 19 | | is_bid: bool, [INFO] [stderr] 20 | | engine: &MatchEngine, [INFO] [stderr] 21 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/iceberg.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | / fn process_matching( [INFO] [stderr] 39 | | &self, [INFO] [stderr] 40 | | engine: &MatchEngine, [INFO] [stderr] 41 | | bids: &OrderTree, [INFO] [stderr] 42 | | asks: &OrderTree, [INFO] [stderr] 43 | | symbol: &Arc, [INFO] [stderr] 44 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/ioc_fok.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / fn add_order( [INFO] [stderr] 16 | | &self, [INFO] [stderr] 17 | | order: Arc, [INFO] [stderr] 18 | | _price: u64, [INFO] [stderr] 19 | | _is_bid: bool, [INFO] [stderr] 20 | | engine: &MatchEngine, [INFO] [stderr] 21 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/ioc_fok.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | / fn process_matching( [INFO] [stderr] 28 | | &self, [INFO] [stderr] 29 | | engine: &MatchEngine, [INFO] [stderr] 30 | | bids: &OrderTree, [INFO] [stderr] 31 | | asks: &OrderTree, [INFO] [stderr] 32 | | symbol: &Arc, [INFO] [stderr] 33 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/limit.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | / fn add_order( [INFO] [stderr] 16 | | &self, [INFO] [stderr] 17 | | order: Arc, [INFO] [stderr] 18 | | price: u64, [INFO] [stderr] 19 | | is_bid: bool, [INFO] [stderr] 20 | | engine: &MatchEngine, [INFO] [stderr] 21 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/limit.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | / fn process_matching( [INFO] [stderr] 31 | | &self, [INFO] [stderr] 32 | | engine: &MatchEngine, [INFO] [stderr] 33 | | bids: &OrderTree, [INFO] [stderr] 34 | | asks: &OrderTree, [INFO] [stderr] 35 | | symbol: &Arc, [INFO] [stderr] 36 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_match` [INFO] [stderr] --> src/matcher/limit.rs:184:5 [INFO] [stderr] | [INFO] [stderr] 184 | / pub fn execute_match( [INFO] [stderr] 185 | | &self, [INFO] [stderr] 186 | | engine: &MatchEngine, [INFO] [stderr] 187 | | aggressive: &Arc, [INFO] [stderr] ... | [INFO] [stderr] 194 | | is_cross: bool, [INFO] [stderr] 195 | | ) { [INFO] [stderr] | |_____^ method `LimitOrderHandler::execute_match` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `LimitOrderHandler::execute_cross_matching` [INFO] [stderr] --> src/matcher/limit.rs:245:5 [INFO] [stderr] | [INFO] [stderr] 245 | / pub fn execute_cross_matching( [INFO] [stderr] 246 | | &self, [INFO] [stderr] 247 | | engine: &MatchEngine, [INFO] [stderr] 248 | | bids: &OrderTree, [INFO] [stderr] ... | [INFO] [stderr] 252 | | best_ask: u64, [INFO] [stderr] 253 | | ) { [INFO] [stderr] | |_____^ method `LimitOrderHandler::execute_cross_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/market.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | / fn add_order( [INFO] [stderr] 17 | | &self, [INFO] [stderr] 18 | | order: Arc, [INFO] [stderr] 19 | | _price: u64, [INFO] [stderr] 20 | | _is_bid: bool, [INFO] [stderr] 21 | | engine: &MatchEngine, [INFO] [stderr] 22 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/market.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | / fn process_matching( [INFO] [stderr] 29 | | &self, [INFO] [stderr] 30 | | engine: &MatchEngine, [INFO] [stderr] 31 | | bids: &OrderTree, [INFO] [stderr] 32 | | asks: &OrderTree, [INFO] [stderr] 33 | | symbol: &Arc, [INFO] [stderr] 34 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/stop.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | / fn add_order( [INFO] [stderr] 14 | | &self, [INFO] [stderr] 15 | | order: Arc, [INFO] [stderr] 16 | | _price: u64, [INFO] [stderr] 17 | | _is_bid: bool, [INFO] [stderr] 18 | | engine: &MatchEngine, [INFO] [stderr] 19 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/stop.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | / fn process_matching( [INFO] [stderr] 26 | | &self, [INFO] [stderr] 27 | | engine: &MatchEngine, [INFO] [stderr] 28 | | bids: &OrderTree, [INFO] [stderr] 29 | | asks: &OrderTree, [INFO] [stderr] 30 | | symbol: &Arc, [INFO] [stderr] 31 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::add_order` [INFO] [stderr] --> src/matcher/stop_limit.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | / fn add_order( [INFO] [stderr] 14 | | &self, [INFO] [stderr] 15 | | order: Arc, [INFO] [stderr] 16 | | _price: u64, [INFO] [stderr] 17 | | _is_bid: bool, [INFO] [stderr] 18 | | engine: &MatchEngine, [INFO] [stderr] 19 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::add_order` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `MatchEngine` is more private than the item `::process_matching` [INFO] [stderr] --> src/matcher/stop_limit.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | / fn process_matching( [INFO] [stderr] 26 | | &self, [INFO] [stderr] 27 | | engine: &MatchEngine, [INFO] [stderr] 28 | | bids: &OrderTree, [INFO] [stderr] 29 | | asks: &OrderTree, [INFO] [stderr] 30 | | symbol: &Arc, [INFO] [stderr] 31 | | ) -> Result<(), String> { [INFO] [stderr] | |___________________________^ method `::process_matching` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `MatchEngine` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/matcher/mod.rs:245:1 [INFO] [stderr] | [INFO] [stderr] 245 | pub(crate) struct MatchEngine { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `price` and `last_match_time` are never read [INFO] [stderr] --> src/matcher/mod.rs:223:5 [INFO] [stderr] | [INFO] [stderr] 222 | struct PriceLevelMatcher { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 223 | price: u64, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 228 | last_match_time: Instant, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PriceLevelMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/matcher/mod.rs:416:12 [INFO] [stderr] | [INFO] [stderr] 269 | impl MatchEngine { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 416 | pub fn execute_single_match( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 498 | pub fn process_order(&self, order: Arc) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 552 | pub fn get_iceberg_orders( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 564 | pub fn get_price_matchers( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 571 | pub fn is_running(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 576 | pub fn get_stats_ref(&self) -> &MatchStats { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `update_iceberg_order` is never used [INFO] [stderr] --> src/matcher/iceberg.rs:112:8 [INFO] [stderr] | [INFO] [stderr] 54 | impl IcebergOrderHandler { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 112 | fn update_iceberg_order(&self, engine: &MatchEngine, order: &Arc, matched_qty: f64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:527:37 [INFO] [stderr] | [INFO] [stderr] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 527 | pub fn get_pending_limit_orders(&self) -> parking_lot::MutexGuard<'_, VecDeque> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:532:35 [INFO] [stderr] | [INFO] [stderr] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 532 | pub fn get_market_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:537:33 [INFO] [stderr] | [INFO] [stderr] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 537 | pub fn get_stop_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:542:39 [INFO] [stderr] | [INFO] [stderr] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 542 | pub fn get_stop_limit_order_queue(&self) -> parking_lot::MutexGuard<'_, VecDeque>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:547:38 [INFO] [stderr] | [INFO] [stderr] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard>> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 547 | pub fn get_immediate_order_queue(&self) -> parking_lot::MutexGuard<'_, Vec>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:553:9 [INFO] [stderr] | [INFO] [stderr] 553 | &self, [INFO] [stderr] | ^^^^^ the lifetime is elided here [INFO] [stderr] 554 | ) -> parking_lot::MutexGuard> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 554 | ) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:559:27 [INFO] [stderr] | [INFO] [stderr] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 559 | pub fn get_day_orders(&self) -> parking_lot::MutexGuard<'_, HashMap> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/matcher/mod.rs:565:9 [INFO] [stderr] | [INFO] [stderr] 565 | &self, [INFO] [stderr] | ^^^^^ the lifetime is elided here [INFO] [stderr] 566 | ) -> parking_lot::RwLockReadGuard> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 566 | ) -> parking_lot::RwLockReadGuard<'_, HashMap> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `luminengine` (lib) generated 39 warnings (run `cargo fix --lib -p luminengine` to apply 13 suggestions) [INFO] [stderr] warning: `luminengine` (lib test) generated 39 warnings (39 duplicates) [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> tests/basic_test.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stderr] --> tests/basic_test.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | use rand::{Rng, thread_rng}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stderr] --> tests/basic_test.rs:162:31 [INFO] [stderr] | [INFO] [stderr] 162 | let mut rng = thread_rng(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stderr] --> tests/basic_test.rs:390:31 [INFO] [stderr] | [INFO] [stderr] 390 | let mut rng = thread_rng(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stderr] --> tests/basic_test.rs:417:31 [INFO] [stderr] | [INFO] [stderr] 417 | let mut rng = thread_rng(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stderr] --> tests/basic_test.rs:171:44 [INFO] [stderr] | [INFO] [stderr] 171 | let direction = if rng.gen_bool(0.5) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:179:29 [INFO] [stderr] | [INFO] [stderr] 179 | rng.gen_range(45000.0..45500.0) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:181:29 [INFO] [stderr] | [INFO] [stderr] 181 | rng.gen_range(45600.0..46000.0) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:184:40 [INFO] [stderr] | [INFO] [stderr] 184 | let quantity = rng.gen_range(0.1..5.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:393:37 [INFO] [stderr] | [INFO] [stderr] 393 | let price = rng.gen_range(45000.0..45200.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:394:40 [INFO] [stderr] | [INFO] [stderr] 394 | let quantity = rng.gen_range(0.1..5.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:420:37 [INFO] [stderr] | [INFO] [stderr] 420 | let price = rng.gen_range(45250.0..45500.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/basic_test.rs:421:40 [INFO] [stderr] | [INFO] [stderr] 421 | let quantity = rng.gen_range(0.1..3.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `clear_screen` is never used [INFO] [stderr] --> tests/basic_test.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | fn clear_screen() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> tests/order_test_2.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/order_test_2.rs:234:48 [INFO] [stderr] | [INFO] [stderr] 234 | let order_type = match rng.gen_range(0..100) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_bool`: Renamed to `random_bool` [INFO] [stderr] --> tests/order_test_2.rs:246:44 [INFO] [stderr] | [INFO] [stderr] 246 | let direction = if rng.gen_bool(0.5) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/order_test_2.rs:255:29 [INFO] [stderr] | [INFO] [stderr] 255 | rng.gen_range(100.0..200.0) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stderr] --> tests/order_test_2.rs:258:40 [INFO] [stderr] | [INFO] [stderr] 258 | let quantity = rng.gen_range(1.0..1000.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> tests/order_test_2.rs:32:57 [INFO] [stderr] | [INFO] [stderr] 32 | orderbook_for_callback.set_match_callback(move |result| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `errors_gen` [INFO] [stderr] --> tests/order_test_2.rs:217:13 [INFO] [stderr] | [INFO] [stderr] 217 | let errors_gen = errors.clone(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_errors_gen` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `thread_id` [INFO] [stderr] --> tests/order_test_2.rs:306:13 [INFO] [stderr] | [INFO] [stderr] 306 | for thread_id in 0..num_processor_threads { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `wait_start` [INFO] [stderr] --> tests/order_test_2.rs:342:13 [INFO] [stderr] | [INFO] [stderr] 342 | let wait_start = Instant::now(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_start` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `wait_sec` [INFO] [stderr] --> tests/order_test_2.rs:347:13 [INFO] [stderr] | [INFO] [stderr] 347 | for wait_sec in 1..=10 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_sec` [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> tests/order_test_1.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `luminengine` (test "basic_test") generated 14 warnings (run `cargo fix --test "basic_test" -p luminengine` to apply 1 suggestion) [INFO] [stderr] warning: `luminengine` (test "order_test_2") generated 10 warnings (run `cargo fix --test "order_test_2" -p luminengine` to apply 6 suggestions) [INFO] [stderr] warning: `luminengine` (test "order_test_1") generated 1 warning (run `cargo fix --test "order_test_1" -p luminengine` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/luminengine-e3ddac032e8a13e7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/basic_test.rs (/opt/rustwide/target/debug/deps/basic_test-709295944a674e1a) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test basic_test::test_orderbook_simplest ... FAILED [INFO] [stdout] test basic_test::test_orderbook_basic_operations ... FAILED [INFO] [stdout] test basic_test::test_orderbook_concurrent_access ... ok [INFO] [stdout] test basic_test::test_orderbook_realtime_async_display ... ok [INFO] [stdout] test basic_test::test_orderbook_realtime_display ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- basic_test::test_orderbook_simplest stdout ---- [INFO] [stdout] ๐Ÿงช Testing order book simplest logic... [INFO] [stdout] โœ… Order book created successfully [INFO] [stdout] โœ… Buy order added successfully: ID=ORDER-1 [INFO] [stdout] โœ… Sell order added successfully: ID=ORDER-2 [INFO] [stdout] [INFO] [stdout] thread 'basic_test::test_orderbook_simplest' (22) panicked at tests/basic_test.rs:120:9: [INFO] [stdout] Failed to find buy order [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x630eea70ea5a - std[31e582c13f4e914f]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x630eea70ea5a - std[31e582c13f4e914f]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x630eea70ea5a - std[31e582c13f4e914f]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x630eea70ea5a - <::print::DisplayBacktrace as core[fa0eadad68403074]::fmt::Display>::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x630eea72366a - ::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x630eea72366a - core[fa0eadad68403074]::fmt::write [INFO] [stdout] 6: 0x630eea713302 - std[31e582c13f4e914f]::io::default_write_fmt::> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x630eea713302 - as std[31e582c13f4e914f]::io::Write>::write_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x630eea6ecebf - ::print [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x630eea6ecebf - std[31e582c13f4e914f]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x630eea7063d9 - std[31e582c13f4e914f]::panicking::default_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x630eea5fa3bc - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x630eea5fa3bc - test[7530e63dc052480e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x630eea706592 - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x630eea706592 - std[31e582c13f4e914f]::panicking::panic_with_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x630eea6ecfaa - std[31e582c13f4e914f]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x630eea6e2039 - std[31e582c13f4e914f]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x630eea6edc8d - __rustc[fc8e3a9f23f26cb]::rust_begin_unwind [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x630eea723dfc - core[fa0eadad68403074]::panicking::panic_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x630eea5a7e1d - basic_test[aabb72e612f53e]::basic_test::test_orderbook_simplest [INFO] [stdout] at /opt/rustwide/workdir/tests/basic_test.rs:120:9 [INFO] [stdout] 20: 0x630eea5a4127 - basic_test[aabb72e612f53e]::basic_test::test_orderbook_simplest::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/basic_test.rs:95:33 [INFO] [stdout] 21: 0x630eea5b3c96 - >::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x630eea5ee49b - core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x630eea5ee49b - test[7530e63dc052480e]::__rust_begin_short_backtrace::, fn() -> core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:663:18 [INFO] [stdout] 24: 0x630eea5fae8b - test[7530e63dc052480e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:74 [INFO] [stdout] 25: 0x630eea5fae8b - as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 26: 0x630eea5fae8b - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 27: 0x630eea5fae8b - std[31e582c13f4e914f]::panicking::catch_unwind::, core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 28: 0x630eea5fae8b - std[31e582c13f4e914f]::panic::catch_unwind::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 29: 0x630eea5fae8b - test[7530e63dc052480e]::run_test_in_process [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:27 [INFO] [stdout] 30: 0x630eea5fae8b - test[7530e63dc052480e]::run_test::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:607:43 [INFO] [stdout] 31: 0x630eea5f52e4 - test[7530e63dc052480e]::run_test::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:637:41 [INFO] [stdout] 32: 0x630eea5f52e4 - std[31e582c13f4e914f]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 33: 0x630eea5fda92 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 34: 0x630eea5fda92 - ::{closure#1}::{closure#0}> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 35: 0x630eea5fda92 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 36: 0x630eea5fda92 - std[31e582c13f4e914f]::panicking::catch_unwind::<(), core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 37: 0x630eea5fda92 - std[31e582c13f4e914f]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 38: 0x630eea5fda92 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 39: 0x630eea5fda92 - ::{closure#1} as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 40: 0x630eea70dcef - + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 41: 0x630eea70dcef - ::new::thread_start [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 42: 0x7dabc5686aa4 - [INFO] [stdout] 43: 0x7dabc5713a64 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- basic_test::test_orderbook_basic_operations stdout ---- [INFO] [stdout] ๐Ÿ”ง Testing order book basic operations... [INFO] [stdout] ๐Ÿ“ Test 1: Adding buy order [INFO] [stdout] ๐Ÿ“ Test 2: Adding sell order [INFO] [stdout] ๐Ÿ“ Test 3: Finding order [INFO] [stdout] [INFO] [stdout] thread 'basic_test::test_orderbook_basic_operations' (18) panicked at tests/basic_test.rs:75:9: [INFO] [stdout] Failed to find order [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x630eea70ea5a - std[31e582c13f4e914f]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x630eea70ea5a - std[31e582c13f4e914f]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x630eea70ea5a - std[31e582c13f4e914f]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x630eea70ea5a - <::print::DisplayBacktrace as core[fa0eadad68403074]::fmt::Display>::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x630eea72366a - ::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x630eea72366a - core[fa0eadad68403074]::fmt::write [INFO] [stdout] 6: 0x630eea713302 - std[31e582c13f4e914f]::io::default_write_fmt::> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x630eea713302 - as std[31e582c13f4e914f]::io::Write>::write_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x630eea6ecebf - ::print [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x630eea6ecebf - std[31e582c13f4e914f]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x630eea7063d9 - std[31e582c13f4e914f]::panicking::default_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x630eea5fa3bc - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x630eea5fa3bc - test[7530e63dc052480e]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x630eea706592 - core[fa0eadad68403074]::ops::function::Fn<(&'a std[31e582c13f4e914f]::panic::PanicHookInfo<'b>,), Output = ()> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::Fn<(&std[31e582c13f4e914f]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x630eea706592 - std[31e582c13f4e914f]::panicking::panic_with_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x630eea6ecfaa - std[31e582c13f4e914f]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x630eea6e2039 - std[31e582c13f4e914f]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x630eea6edc8d - __rustc[fc8e3a9f23f26cb]::rust_begin_unwind [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x630eea723dfc - core[fa0eadad68403074]::panicking::panic_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x630eea5a8b63 - basic_test[aabb72e612f53e]::basic_test::test_orderbook_basic_operations [INFO] [stdout] at /opt/rustwide/workdir/tests/basic_test.rs:75:9 [INFO] [stdout] 20: 0x630eea5a4157 - basic_test[aabb72e612f53e]::basic_test::test_orderbook_basic_operations::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/basic_test.rs:54:41 [INFO] [stdout] 21: 0x630eea5b3cd6 - >::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x630eea5ee49b - core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x630eea5ee49b - test[7530e63dc052480e]::__rust_begin_short_backtrace::, fn() -> core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:663:18 [INFO] [stdout] 24: 0x630eea5fae8b - test[7530e63dc052480e]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:74 [INFO] [stdout] 25: 0x630eea5fae8b - as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 26: 0x630eea5fae8b - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 27: 0x630eea5fae8b - std[31e582c13f4e914f]::panicking::catch_unwind::, core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 28: 0x630eea5fae8b - std[31e582c13f4e914f]::panic::catch_unwind::, core[fa0eadad68403074]::result::Result<(), alloc[49b8922c36ca62de]::string::String>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 29: 0x630eea5fae8b - test[7530e63dc052480e]::run_test_in_process [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:686:27 [INFO] [stdout] 30: 0x630eea5fae8b - test[7530e63dc052480e]::run_test::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:607:43 [INFO] [stdout] 31: 0x630eea5f52e4 - test[7530e63dc052480e]::run_test::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/test/src/lib.rs:637:41 [INFO] [stdout] 32: 0x630eea5f52e4 - std[31e582c13f4e914f]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 33: 0x630eea5fda92 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 34: 0x630eea5fda92 - ::{closure#1}::{closure#0}> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 35: 0x630eea5fda92 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 36: 0x630eea5fda92 - std[31e582c13f4e914f]::panicking::catch_unwind::<(), core[fa0eadad68403074]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 37: 0x630eea5fda92 - std[31e582c13f4e914f]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 38: 0x630eea5fda92 - std[31e582c13f4e914f]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 39: 0x630eea5fda92 - ::{closure#1} as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 40: 0x630eea70dcef - + core[fa0eadad68403074]::marker::Send> as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 41: 0x630eea70dcef - ::new::thread_start [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 42: 0x7dabc5686aa4 - [INFO] [stdout] 43: 0x7dabc5713a64 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] basic_test::test_orderbook_basic_operations [INFO] [stdout] basic_test::test_orderbook_simplest [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.19s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test basic_test` [INFO] running `Command { std: "docker" "inspect" "0655588ca80c0dce019d739cf7b9e50c5ff27700158317c223d1243f6e0837b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0655588ca80c0dce019d739cf7b9e50c5ff27700158317c223d1243f6e0837b8", kill_on_drop: false }` [INFO] [stdout] 0655588ca80c0dce019d739cf7b9e50c5ff27700158317c223d1243f6e0837b8