[INFO] cloning repository https://github.com/encratite/unquantified [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/encratite/unquantified" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fencratite%2Funquantified", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fencratite%2Funquantified'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 64a57cf3290a352e11606365548d87a78867aeff [INFO] checking encratite/unquantified against master#eb10639928a2781cf0a12440007fbcc1e3a6888f for pr-127827-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fencratite%2Funquantified" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/encratite/unquantified on toolchain eb10639928a2781cf0a12440007fbcc1e3a6888f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/encratite/unquantified [INFO] finished tweaking git repo https://github.com/encratite/unquantified [INFO] tweaked toml for git repo https://github.com/encratite/unquantified written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/encratite/unquantified 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" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-complex v0.1.43 [INFO] [stderr] Downloaded stopwatch v0.0.7 [INFO] [stderr] Downloaded cc v1.1.5 [INFO] [stderr] Downloaded num-rational v0.1.42 [INFO] [stderr] Downloaded configparser v3.1.0 [INFO] [stderr] Downloaded num-bigint v0.1.44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04f8fe2de392de133c83d03984453dc0bc616f61da26d1713132f559baada769 [INFO] running `Command { std: "docker" "start" "-a" "04f8fe2de392de133c83d03984453dc0bc616f61da26d1713132f559baada769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04f8fe2de392de133c83d03984453dc0bc616f61da26d1713132f559baada769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04f8fe2de392de133c83d03984453dc0bc616f61da26d1713132f559baada769", kill_on_drop: false }` [INFO] [stdout] 04f8fe2de392de133c83d03984453dc0bc616f61da26d1713132f559baada769 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 687af6116ff321ffaf032e6a73c5668b39e6b0aa02d0bdf9a6ed9b24e0d11829 [INFO] running `Command { std: "docker" "start" "-a" "687af6116ff321ffaf032e6a73c5668b39e6b0aa02d0bdf9a6ed9b24e0d11829", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling rkyv v0.7.44 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking seahash v4.1.0 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling cc v1.1.5 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking configparser v3.1.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking dashmap v6.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling rkyv_derive v0.7.44 [INFO] [stderr] Checking ptr_meta v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling axum-macros v0.4.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking serde v1.0.204 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking serde_json v1.0.120 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking unquantified v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/server/backtest.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 115 | panic!("Not implemented"); [INFO] [stdout] | ------------------------- any code following this expression is unreachable [INFO] [stdout] 116 | self.now = now; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/server/backtest.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 115 | panic!("Not implemented"); [INFO] [stdout] | ------------------------- any code following this expression is unreachable [INFO] [stdout] 116 | self.now = now; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/server/backtest.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | Some(now) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/server/backtest.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/server/backtest.rs:123:50 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/server/backtest.rs:123:62 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/server/backtest.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn close_position(&mut self, position: Position, count: u32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/server/backtest.rs:127:55 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn close_position(&mut self, position: Position, count: u32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/server/backtest.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | Some(now) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/server/backtest.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/server/backtest.rs:123:50 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/server/backtest.rs:123:62 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn open_position(&mut self, symbol: String, count: u32, side: PositionSide) -> Result> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/server/backtest.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn close_position(&mut self, position: Position, count: u32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/server/backtest.rs:127:55 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn close_position(&mut self, position: Position, count: u32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backtest_configuration` is never read [INFO] [stdout] --> src/server/server.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 21 | struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 22 | asset_manager: AssetManager, [INFO] [stdout] 23 | backtest_configuration: BacktestConfiguration [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_time_tz` is never used [INFO] [stdout] --> src/server/datetime.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_date_time_tz(time: NaiveDateTime, tz: &Tz) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PositionSide` is never used [INFO] [stdout] --> src/server/backtest.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum PositionSide { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionSide` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Daily` and `Intraday` are never constructed [INFO] [stdout] --> src/server/backtest.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum TimeFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 17 | Daily, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | Intraday [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeFrame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Backtest` is never constructed [INFO] [stdout] --> src/server/backtest.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Backtest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `starting_cash`, `forex_order_fee`, `forex_spread`, `futures_spread_ticks`, `initial_margin_ratio`, and `overnight_margin_ratio` are never read [INFO] [stdout] --> src/server/backtest.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BacktestConfiguration { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 44 | // Initial cash the backtest starts with, in USD [INFO] [stdout] 45 | pub starting_cash: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 46 | // Commission charged by broker on each currency order, in USD [INFO] [stdout] 47 | pub forex_order_fee: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub forex_spread: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub futures_spread_ticks: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub initial_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub overnight_margin_ratio: f64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestConfiguration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/server/backtest.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BacktestResult` is never constructed [INFO] [stdout] --> src/server/backtest.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct BacktestResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_time_sequence` is never used [INFO] [stdout] --> src/server/backtest.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 88 | impl Backtest { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | fn get_time_sequence(from: &DateTime, to: &DateTime, time_frame: &TimeFrame, asset_manager: &Arc) -> Result src/server/manager.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Asset { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 16 | pub symbol: String, [INFO] [stdout] 17 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub asset_type: AssetType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub data_symbol: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | pub tick_size: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub tick_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub margin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | pub overnight_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub broker_fee: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub exchange_fee: f64 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Asset` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `assets` is never read [INFO] [stdout] --> src/server/manager.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AssetManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | assets: HashMap [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backtest_configuration` is never read [INFO] [stdout] --> src/server/server.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 21 | struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 22 | asset_manager: AssetManager, [INFO] [stdout] 23 | backtest_configuration: BacktestConfiguration [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_time_tz` is never used [INFO] [stdout] --> src/server/datetime.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_date_time_tz(time: NaiveDateTime, tz: &Tz) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PositionSide` is never used [INFO] [stdout] --> src/server/backtest.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum PositionSide { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionSide` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Daily` and `Intraday` are never constructed [INFO] [stdout] --> src/server/backtest.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum TimeFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 17 | Daily, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | Intraday [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeFrame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Backtest` is never constructed [INFO] [stdout] --> src/server/backtest.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Backtest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `starting_cash`, `forex_order_fee`, `forex_spread`, `futures_spread_ticks`, `initial_margin_ratio`, and `overnight_margin_ratio` are never read [INFO] [stdout] --> src/server/backtest.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct BacktestConfiguration { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 44 | // Initial cash the backtest starts with, in USD [INFO] [stdout] 45 | pub starting_cash: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 46 | // Commission charged by broker on each currency order, in USD [INFO] [stdout] 47 | pub forex_order_fee: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub forex_spread: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub futures_spread_ticks: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub initial_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub overnight_margin_ratio: f64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestConfiguration` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/server/backtest.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BacktestResult` is never constructed [INFO] [stdout] --> src/server/backtest.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct BacktestResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_time_sequence` is never used [INFO] [stdout] --> src/server/backtest.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 88 | impl Backtest { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | fn get_time_sequence(from: &DateTime, to: &DateTime, time_frame: &TimeFrame, asset_manager: &Arc) -> Result src/server/manager.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Asset { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 16 | pub symbol: String, [INFO] [stdout] 17 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub asset_type: AssetType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub data_symbol: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | pub tick_size: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub tick_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub margin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | pub overnight_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub broker_fee: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub exchange_fee: f64 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Asset` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `assets` is never read [INFO] [stdout] --> src/server/manager.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct AssetManager { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | assets: HashMap [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "687af6116ff321ffaf032e6a73c5668b39e6b0aa02d0bdf9a6ed9b24e0d11829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "687af6116ff321ffaf032e6a73c5668b39e6b0aa02d0bdf9a6ed9b24e0d11829", kill_on_drop: false }` [INFO] [stdout] 687af6116ff321ffaf032e6a73c5668b39e6b0aa02d0bdf9a6ed9b24e0d11829