[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] aa2ce370bd7235a7457458317fc34bbf0d4dcc8d [INFO] checking encratite/unquantified against master#e08b80c0fb7667bdcd040761891701e576c42ec8 for pr-129021 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fencratite%2Funquantified" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/encratite/unquantified on toolchain e08b80c0fb7667bdcd040761891701e576c42ec8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e08b80c0fb7667bdcd040761891701e576c42ec8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-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-3-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" "+e08b80c0fb7667bdcd040761891701e576c42ec8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stopwatch v0.0.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+e08b80c0fb7667bdcd040761891701e576c42ec8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29f6507d6e10fc91e08d7b4745ee5615a5c031dcfa843bdb2f664d8bf432519a [INFO] running `Command { std: "docker" "start" "-a" "29f6507d6e10fc91e08d7b4745ee5615a5c031dcfa843bdb2f664d8bf432519a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29f6507d6e10fc91e08d7b4745ee5615a5c031dcfa843bdb2f664d8bf432519a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29f6507d6e10fc91e08d7b4745ee5615a5c031dcfa843bdb2f664d8bf432519a", kill_on_drop: false }` [INFO] [stdout] 29f6507d6e10fc91e08d7b4745ee5615a5c031dcfa843bdb2f664d8bf432519a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+e08b80c0fb7667bdcd040761891701e576c42ec8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbb2afdbfa48059ffbdf01070b8694902866b0f09ab844ad9903dd9d1e8aa4fa [INFO] running `Command { std: "docker" "start" "-a" "cbb2afdbfa48059ffbdf01070b8694902866b0f09ab844ad9903dd9d1e8aa4fa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling syn v1.0.109 [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 siphasher v0.3.11 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling cc v1.1.5 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling rkyv v0.7.44 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling axum-core v0.4.3 [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 serde_json v1.0.120 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling rkyv_derive v0.7.44 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking ptr_meta v0.1.4 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Checking dashmap v6.0.1 [INFO] [stderr] Checking configparser v3.1.0 [INFO] [stderr] Checking strum v0.26.3 [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] Checking tokio v1.38.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling axum-macros v0.4.1 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking lazy_static v1.5.0 [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 tower-http v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking unquantified v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/csv-parser/filter.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `anyhow` [INFO] [stdout] --> src/csv-parser/filter.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/server/server.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{Context, Result, anyhow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/server/server.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{Context, Result, anyhow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backtest_configuration` is never read [INFO] [stdout] --> src/server/server.rs:18:2 [INFO] [stdout] | [INFO] [stdout] 16 | struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | asset_manager: AssetManager, [INFO] [stdout] 18 | 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:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn get_date_time_tz(time: NaiveDateTime, tz: &Tz) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOREX_USD` is never used [INFO] [stdout] --> src/server/backtest.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const FOREX_USD: &str = "USD"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Long` and `Short` are never constructed [INFO] [stdout] --> src/server/backtest.rs:30:2 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum PositionSide { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 29 | #[strum(serialize = "long")] [INFO] [stdout] 30 | Long, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[strum(serialize = "short")] [INFO] [stdout] 32 | Short [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionSide` 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: variants `Daily` and `Intraday` are never constructed [INFO] [stdout] --> src/server/backtest.rs:37:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum TimeFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 37 | Daily, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | 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: variants `OpenPosition`, `ClosePosition`, `MarginCall`, and `Error` are never constructed [INFO] [stdout] --> src/server/backtest.rs:43:2 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum EventType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 43 | OpenPosition, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 44 | ClosePosition, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 45 | MarginCall, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 46 | Error [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventType` 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:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Backtest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backtest_configuration` is never read [INFO] [stdout] --> src/server/server.rs:18:2 [INFO] [stdout] | [INFO] [stdout] 16 | struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | asset_manager: AssetManager, [INFO] [stdout] 18 | 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:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn get_date_time_tz(time: NaiveDateTime, tz: &Tz) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOREX_USD` is never used [INFO] [stdout] --> src/server/backtest.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const FOREX_USD: &str = "USD"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/server/backtest.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct BacktestConfiguration { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 80 | // Initial cash the backtest starts with, in USD [INFO] [stdout] 81 | pub starting_cash: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 82 | // Commission charged by broker on each currency order, in USD [INFO] [stdout] 83 | pub forex_order_fee: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub forex_spread: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub futures_spread_ticks: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub initial_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub overnight_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | // If true, automatically roll over futures contracts [INFO] [stdout] 98 | pub automatic_rollover: bool [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:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` 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: variants `Long` and `Short` are never constructed [INFO] [stdout] --> src/server/backtest.rs:30:2 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum PositionSide { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 29 | #[strum(serialize = "long")] [INFO] [stdout] 30 | Long, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | #[strum(serialize = "short")] [INFO] [stdout] 32 | Short [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionSide` 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 `BacktestEvent` is never constructed [INFO] [stdout] --> src/server/backtest.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct BacktestEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestEvent` 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:37:2 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum TimeFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 37 | Daily, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | 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 `BacktestResult` is never constructed [INFO] [stdout] --> src/server/backtest.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | 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: variants `OpenPosition`, `ClosePosition`, `MarginCall`, and `Error` are never constructed [INFO] [stdout] --> src/server/backtest.rs:43:2 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum EventType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 43 | OpenPosition, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 44 | ClosePosition, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 45 | MarginCall, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 46 | Error [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventType` 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:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Backtest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/server/backtest.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct BacktestConfiguration { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 80 | // Initial cash the backtest starts with, in USD [INFO] [stdout] 81 | pub starting_cash: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 82 | // Commission charged by broker on each currency order, in USD [INFO] [stdout] 83 | pub forex_order_fee: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub forex_spread: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub futures_spread_ticks: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub initial_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub overnight_margin_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | // If true, automatically roll over futures contracts [INFO] [stdout] 98 | pub automatic_rollover: bool [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: multiple associated items are never used [INFO] [stdout] --> src/server/backtest.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 138 | impl Backtest { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new(&self, from: DateTime, to: DateTime, time_frame: TimeFrame, configuration: BacktestConfiguration, asset_manager: A... [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn next(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn open_position(&mut self, symbol: &String, count: u32, side: PositionSide) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn close_position(&mut self, position_id: u32, count: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | fn get_margin(&self, asset: &Asset, archive: Arc) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn convert_currency(&self, from: &String, to: &String, amount: f64) -> Result<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn get_current_record(&self, symbol: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn get_record(&self, symbol: &String, time: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | fn get_time_sequence(from: &DateTime, to: &DateTime, time_frame: &TimeFrame, asset_manager: &Arc) -> Result(archive: &'a OhlcArchive, time_frame: &TimeFrame) -> &'a OhlcData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | fn get_account_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | fn get_position_value(&self, position: &Position, count: u32) -> Result<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | fn get_overnight_margin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | fn margin_call_check(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 466 | fn get_first_position(&self) -> Option<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | fn log_event(&mut self, event_type: EventType, message: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | fn close_all_positions(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | fn rollover_contracts(&mut self, now: DateTime, then: DateTime) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/server/backtest.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` 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 `BacktestEvent` is never constructed [INFO] [stdout] --> src/server/backtest.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct BacktestEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BacktestEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> 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] 19 | pub currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | pub tick_size: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | pub tick_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | pub margin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub overnight_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub broker_fee: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | 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: struct `BacktestResult` is never constructed [INFO] [stdout] --> src/server/backtest.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | 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: method `get_asset` is never used [INFO] [stdout] --> src/server/manager.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 35 | impl AssetManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_asset(&self, symbol: &String) -> Result<(Asset, Arc)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/server/backtest.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 138 | impl Backtest { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 139 | pub fn new(&self, from: DateTime, to: DateTime, time_frame: TimeFrame, configuration: BacktestConfiguration, asset_manager: A... [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn next(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn open_position(&mut self, symbol: &String, count: u32, side: PositionSide) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn close_position(&mut self, position_id: u32, count: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | fn get_margin(&self, asset: &Asset, archive: Arc) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | fn convert_currency(&self, from: &String, to: &String, amount: f64) -> Result<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn get_current_record(&self, symbol: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | fn get_record(&self, symbol: &String, time: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | fn get_time_sequence(from: &DateTime, to: &DateTime, time_frame: &TimeFrame, asset_manager: &Arc) -> Result(archive: &'a OhlcArchive, time_frame: &TimeFrame) -> &'a OhlcData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | fn get_account_value(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | fn get_position_value(&self, position: &Position, count: u32) -> Result<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | fn get_overnight_margin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | fn margin_call_check(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 466 | fn get_first_position(&self) -> Option<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | fn log_event(&mut self, event_type: EventType, message: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | fn close_all_positions(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | fn rollover_contracts(&mut self, now: DateTime, then: DateTime) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> 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] 19 | pub currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | pub tick_size: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | pub tick_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | pub margin: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub overnight_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub broker_fee: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | 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: method `get_asset` is never used [INFO] [stdout] --> src/server/manager.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 35 | impl AssetManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_asset(&self, symbol: &String) -> Result<(Asset, Arc)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.73s [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 1` [INFO] running `Command { std: "docker" "inspect" "cbb2afdbfa48059ffbdf01070b8694902866b0f09ab844ad9903dd9d1e8aa4fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb2afdbfa48059ffbdf01070b8694902866b0f09ab844ad9903dd9d1e8aa4fa", kill_on_drop: false }` [INFO] [stdout] cbb2afdbfa48059ffbdf01070b8694902866b0f09ab844ad9903dd9d1e8aa4fa