[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 try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhanyi%2FBasicEngine" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yhanyi/BasicEngine on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a248f304346abfa1c97581f35feb2db59503e2ac32f4cd41db10e5bfd69cbd3 [INFO] running `Command { std: "docker" "start" "-a" "0a248f304346abfa1c97581f35feb2db59503e2ac32f4cd41db10e5bfd69cbd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a248f304346abfa1c97581f35feb2db59503e2ac32f4cd41db10e5bfd69cbd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a248f304346abfa1c97581f35feb2db59503e2ac32f4cd41db10e5bfd69cbd3", kill_on_drop: false }` [INFO] [stdout] 0a248f304346abfa1c97581f35feb2db59503e2ac32f4cd41db10e5bfd69cbd3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5374fd6a15398e5612253d440f89017c93b9a3390245ca50ad1c86ca41926d61 [INFO] running `Command { std: "docker" "start" "-a" "5374fd6a15398e5612253d440f89017c93b9a3390245ca50ad1c86ca41926d61", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling quanta v0.11.1 [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 futures-util v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling yoke v0.8.0 [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 zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling metrics-macros v0.7.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.13.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling metrics v0.21.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling sketches-ddsketch v0.2.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling metrics-util v0.15.1 [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 deranged v0.3.11 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling lock_api v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling textwrap v0.16.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling crossbeam-skiplist v0.1.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.12.2 [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: 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 `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: 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 `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: 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`, `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: 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`, `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: 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 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: 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: 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: 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: 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 3m 36s [INFO] running `Command { std: "docker" "inspect" "5374fd6a15398e5612253d440f89017c93b9a3390245ca50ad1c86ca41926d61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5374fd6a15398e5612253d440f89017c93b9a3390245ca50ad1c86ca41926d61", kill_on_drop: false }` [INFO] [stdout] 5374fd6a15398e5612253d440f89017c93b9a3390245ca50ad1c86ca41926d61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 152507e11b5eb42f4d442b3d3b397243f2a927ed39ca220dfdffea48527d4c14 [INFO] running `Command { std: "docker" "start" "-a" "152507e11b5eb42f4d442b3d3b397243f2a927ed39ca220dfdffea48527d4c14", kill_on_drop: false }` [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling paste v1.0.15 [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] [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: 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: 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: 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 31.49s [INFO] running `Command { std: "docker" "inspect" "152507e11b5eb42f4d442b3d3b397243f2a927ed39ca220dfdffea48527d4c14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "152507e11b5eb42f4d442b3d3b397243f2a927ed39ca220dfdffea48527d4c14", kill_on_drop: false }` [INFO] [stdout] 152507e11b5eb42f4d442b3d3b397243f2a927ed39ca220dfdffea48527d4c14