[INFO] cloning repository https://github.com/yhanyi/BasicEngine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yhanyi/BasicEngine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhanyi%2FBasicEngine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhanyi%2FBasicEngine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe4042f03d593eb9cb4f3fff91ea41faa5e03d69 [INFO] building yhanyi/BasicEngine against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhanyi%2FBasicEngine" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yhanyi/BasicEngine [INFO] finished tweaking git repo https://github.com/yhanyi/BasicEngine [INFO] tweaked toml for git repo https://github.com/yhanyi/BasicEngine written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yhanyi/BasicEngine on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yhanyi/BasicEngine 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.22.0 [INFO] [stderr] Downloaded hashbrown v0.13.1 [INFO] [stderr] Downloaded quanta v0.11.1 [INFO] [stderr] Downloaded hyper-util v0.1.17 [INFO] [stderr] Downloaded metrics-macros v0.7.1 [INFO] [stderr] Downloaded metrics v0.21.1 [INFO] [stderr] Downloaded metrics-util v0.15.1 [INFO] [stderr] Downloaded crossbeam-skiplist v0.1.3 [INFO] [stderr] Downloaded parking_lot_core v0.5.0 [INFO] [stderr] Downloaded parking_lot v0.8.0 [INFO] [stderr] Downloaded metrics-exporter-prometheus v0.12.2 [INFO] [stderr] Downloaded lock_api v0.2.0 [INFO] [stderr] Downloaded sketches-ddsketch v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23cf850248087108d839ec0fcfa1e858e22826870046d3a13ae7cda41bbcc218 [INFO] running `Command { std: "docker" "start" "-a" "23cf850248087108d839ec0fcfa1e858e22826870046d3a13ae7cda41bbcc218", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23cf850248087108d839ec0fcfa1e858e22826870046d3a13ae7cda41bbcc218", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23cf850248087108d839ec0fcfa1e858e22826870046d3a13ae7cda41bbcc218", kill_on_drop: false }` [INFO] [stdout] 23cf850248087108d839ec0fcfa1e858e22826870046d3a13ae7cda41bbcc218 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff58db0ce63eac1b47440c6faf1db62ba057e5b26c251b854995b8affb5885a6 [INFO] running `Command { std: "docker" "start" "-a" "ff58db0ce63eac1b47440c6faf1db62ba057e5b26c251b854995b8affb5885a6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling sketches-ddsketch v0.2.2 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling lock_api v0.2.0 [INFO] [stderr] Compiling textwrap v0.16.1 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling crossbeam-skiplist v0.1.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling quanta v0.11.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling metrics-macros v0.7.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.13.1 [INFO] [stderr] Compiling metrics v0.21.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling metrics-util v0.15.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.12.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rustorderbooks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `get_total_quantity` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderType` is never used [INFO] [stdout] --> src/models.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum OrderType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradingPair` is never constructed [INFO] [stdout] --> src/models.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TradingPair { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_string` are never used [INFO] [stdout] --> src/models.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl TradingPair { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 18 | pub fn new(base: impl Into, quote: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn from_string(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/models.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Order { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 53 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OrderBook` is never used [INFO] [stdout] --> src/models.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait OrderBook: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceOrderRequest` is never constructed [INFO] [stdout] --> src/models.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct PlaceOrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceOrderResponse` is never constructed [INFO] [stdout] --> src/models.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct PlaceOrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/models.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_order` is never used [INFO] [stdout] --> src/models.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl PlaceOrderRequest { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 107 | pub fn to_order(&self, id: u64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderPrice` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderPrice(f64); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `is_empty`, and `try_match` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl PriceLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn add_order(&mut self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn try_match(&mut self, incoming_quantity: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConcurrentOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ConcurrentOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ConcurrentOrderBook { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 81 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRECISION` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PRECISION: u64 = 1_000_000; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderMicroQuantity` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderMicroQuantity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AtomicPriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct AtomicPriceLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `try_match`, `get_total_quantity`, and `get_order_count` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn add_order(&self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn try_match(&self, quantity_needed: f64) -> Option<(Order, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_order_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockFreeOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct LockFreeOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl LockFreeOrderBook { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 83 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Price` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Price(f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `is_empty`, and `match_order` are never used [INFO] [stdout] --> src/orderbooks/simple.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 52 | impl PriceLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 53 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn add_order(&mut self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn match_order(&mut self, incoming_quantity: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct SimpleOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process_order`, `process_buy_order`, and `process_sell_order` are never used [INFO] [stdout] --> src/orderbooks/simple.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl SimpleOrderBook { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 105 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | async fn process_order(&self, order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn process_buy_order(&self, mut buy_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | async fn process_sell_order(&self, mut sell_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ORDER_PROCESSING_SEMAPHORE` is never used [INFO] [stdout] --> src/server.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static ORDER_PROCESSING_SEMAPHORE: Lazy = Lazy::new(|| Semaphore::new(20)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ORDER_ID_COUNTER` is never used [INFO] [stdout] --> src/server.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static ORDER_ID_COUNTER: AtomicU64 = AtomicU64::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/server.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_or_create_orderbook` are never used [INFO] [stdout] --> src/server.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl AppState { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(factory: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn get_or_create_orderbook(&self, trading_pair: TradingPair) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_server` is never used [INFO] [stdout] --> src/server.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn create_server(factory: F) -> Router [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_server` is never used [INFO] [stdout] --> src/server.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn start_server(port: u16, factory: F) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `health_check` is never used [INFO] [stdout] --> src/server.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | async fn health_check() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `place_order` is never used [INFO] [stdout] --> src/server.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price` is never used [INFO] [stdout] --> src/server.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | async fn get_price( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_cpu_latency` is never used [INFO] [stdout] --> src/server.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn simulate_cpu_latency() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_io_latency` is never used [INFO] [stdout] --> src/server.rs:187:10 [INFO] [stdout] | [INFO] [stdout] 187 | async fn simulate_io_latency() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "ff58db0ce63eac1b47440c6faf1db62ba057e5b26c251b854995b8affb5885a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff58db0ce63eac1b47440c6faf1db62ba057e5b26c251b854995b8affb5885a6", kill_on_drop: false }` [INFO] [stdout] ff58db0ce63eac1b47440c6faf1db62ba057e5b26c251b854995b8affb5885a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c1e7b5e607c9181f8d4691aa884262ed5bc5b670625344b33e1dc4adcec8fd6 [INFO] running `Command { std: "docker" "start" "-a" "9c1e7b5e607c9181f8d4691aa884262ed5bc5b670625344b33e1dc4adcec8fd6", kill_on_drop: false }` [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.12.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rustorderbooks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `get_total_quantity` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderType` is never used [INFO] [stdout] --> src/models.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum OrderType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradingPair` is never constructed [INFO] [stdout] --> src/models.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TradingPair { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_string` are never used [INFO] [stdout] --> src/models.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl TradingPair { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 18 | pub fn new(base: impl Into, quote: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn from_string(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/models.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Order { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 53 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OrderBook` is never used [INFO] [stdout] --> src/models.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait OrderBook: Send + Sync { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceOrderRequest` is never constructed [INFO] [stdout] --> src/models.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct PlaceOrderRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceOrderResponse` is never constructed [INFO] [stdout] --> src/models.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct PlaceOrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/models.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_order` is never used [INFO] [stdout] --> src/models.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl PlaceOrderRequest { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 107 | pub fn to_order(&self, id: u64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderPrice` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderPrice(f64); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `is_empty`, and `try_match` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl PriceLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn add_order(&mut self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn try_match(&mut self, incoming_quantity: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConcurrentOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ConcurrentOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ConcurrentOrderBook { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 81 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRECISION` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PRECISION: u64 = 1_000_000; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderMicroQuantity` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderMicroQuantity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AtomicPriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct AtomicPriceLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `try_match`, `get_total_quantity`, and `get_order_count` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn add_order(&self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn try_match(&self, quantity_needed: f64) -> Option<(Order, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_order_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockFreeOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct LockFreeOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl LockFreeOrderBook { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 83 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Price` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Price(f64); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl TradingPair { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(base: impl Into, quote: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_active_orders_count` is never used [INFO] [stdout] --> src/models.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub trait OrderBook: Send + Sync { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 80 | async fn get_active_orders_count(&self) -> usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `is_empty`, and `match_order` are never used [INFO] [stdout] --> src/orderbooks/simple.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 52 | impl PriceLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 53 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn add_order(&mut self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn match_order(&mut self, incoming_quantity: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderPrice` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderPrice(f64); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/simple.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct SimpleOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process_order`, `process_buy_order`, and `process_sell_order` are never used [INFO] [stdout] --> src/orderbooks/simple.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 104 | impl SimpleOrderBook { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 105 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | async fn process_order(&self, order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | async fn process_buy_order(&self, mut buy_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | async fn process_sell_order(&self, mut sell_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ORDER_PROCESSING_SEMAPHORE` is never used [INFO] [stdout] --> src/server.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static ORDER_PROCESSING_SEMAPHORE: Lazy = Lazy::new(|| Semaphore::new(20)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ORDER_ID_COUNTER` is never used [INFO] [stdout] --> src/server.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static ORDER_ID_COUNTER: AtomicU64 = AtomicU64::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/server.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_or_create_orderbook` are never used [INFO] [stdout] --> src/server.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl AppState { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(factory: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | async fn get_or_create_orderbook(&self, trading_pair: TradingPair) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_server` is never used [INFO] [stdout] --> src/server.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn create_server(factory: F) -> Router [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_server` is never used [INFO] [stdout] --> src/server.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn start_server(port: u16, factory: F) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `health_check` is never used [INFO] [stdout] --> src/server.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | async fn health_check() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `place_order` is never used [INFO] [stdout] --> src/server.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price` is never used [INFO] [stdout] --> src/server.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | async fn get_price( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_cpu_latency` is never used [INFO] [stdout] --> src/server.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn simulate_cpu_latency() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_io_latency` is never used [INFO] [stdout] --> src/server.rs:187:10 [INFO] [stdout] | [INFO] [stdout] 187 | async fn simulate_io_latency() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `is_empty`, and `try_match` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl PriceLevel { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 32 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn add_order(&mut self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn try_match(&mut self, incoming_quantity: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConcurrentOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/concurrent.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ConcurrentOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/concurrent.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ConcurrentOrderBook { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 81 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRECISION` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const PRECISION: u64 = 1_000_000; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderMicroQuantity` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct OrderMicroQuantity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AtomicPriceLevel` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct AtomicPriceLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_order`, `try_match`, `get_total_quantity`, and `get_order_count` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 21 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn add_order(&self, order: Order) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn try_match(&self, quantity_needed: f64) -> Option<(Order, f64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_order_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LockFreeOrderBook` is never constructed [INFO] [stdout] --> src/orderbooks/lockfree.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct LockFreeOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process_order` are never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl LockFreeOrderBook { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 83 | pub fn new(trading_pair: TradingPair) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | async fn process_order(&self, mut incoming_order: Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_server` is never used [INFO] [stdout] --> src/server.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn start_server(port: u16, factory: F) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_total_quantity` is never used [INFO] [stdout] --> src/orderbooks/lockfree.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl AtomicPriceLevel { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_total_quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 15.37s [INFO] running `Command { std: "docker" "inspect" "9c1e7b5e607c9181f8d4691aa884262ed5bc5b670625344b33e1dc4adcec8fd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c1e7b5e607c9181f8d4691aa884262ed5bc5b670625344b33e1dc4adcec8fd6", kill_on_drop: false }` [INFO] [stdout] 9c1e7b5e607c9181f8d4691aa884262ed5bc5b670625344b33e1dc4adcec8fd6