[INFO] cloning repository https://github.com/shinertx/Autobob2
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shinertx/Autobob2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshinertx%2FAutobob2", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshinertx%2FAutobob2'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4f554e3277a150de88e6915aae7fa26831a5ec2a
[INFO] checking shinertx/Autobob2 against try#987a165cfab916796a8315782b83ac460a651ce2 for pr-145262
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshinertx%2FAutobob2" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/shinertx/Autobob2
[INFO] finished tweaking git repo https://github.com/shinertx/Autobob2
[INFO] tweaked toml for git repo https://github.com/shinertx/Autobob2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/shinertx/Autobob2 on toolchain 987a165cfab916796a8315782b83ac460a651ce2
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/shinertx/Autobob2 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" "+987a165cfab916796a8315782b83ac460a651ce2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d17dd4b6391a42929a7ed9f70a0b12445f8d1f6a662bf1abc6f51b3d03a3455d
[INFO] running `Command { std: "docker" "start" "-a" "d17dd4b6391a42929a7ed9f70a0b12445f8d1f6a662bf1abc6f51b3d03a3455d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d17dd4b6391a42929a7ed9f70a0b12445f8d1f6a662bf1abc6f51b3d03a3455d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d17dd4b6391a42929a7ed9f70a0b12445f8d1f6a662bf1abc6f51b3d03a3455d", kill_on_drop: false }`
[INFO] [stdout] d17dd4b6391a42929a7ed9f70a0b12445f8d1f6a662bf1abc6f51b3d03a3455d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+987a165cfab916796a8315782b83ac460a651ce2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6bff7b09bace01402ee6859dad0cae0b972cb2feda3dfec2eae033df47295b8c
[INFO] running `Command { std: "docker" "start" "-a" "6bff7b09bace01402ee6859dad0cae0b972cb2feda3dfec2eae033df47295b8c", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]     Checking cfg-if v1.0.1
[INFO] [stderr]    Compiling autocfg v1.5.0
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]     Checking memchr v2.7.5
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling cc v1.2.31
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling serde_json v1.0.142
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking slab v0.4.10
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking tracing-core v0.1.34
[INFO] [stderr]     Checking hashbrown v0.15.4
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]     Checking cpufeatures v0.2.17
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.16
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking rustc-hex v2.1.0
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking signal-hook-registry v1.4.6
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]     Checking socket2 v0.6.0
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking parking_lot v0.12.4
[INFO] [stderr]     Checking indexmap v2.10.0
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking static_assertions v1.1.0
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]     Checking regex-syntax v0.8.5
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]     Checking tinyvec v1.9.0
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]     Checking rlp v0.5.2
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling rustix v1.0.8
[INFO] [stderr]     Checking fixed-hash v0.8.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]     Checking unicode-normalization v0.1.24
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]     Checking impl-rlp v0.3.0
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]     Checking unicode-bidi v0.3.18
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling unicode-properties v0.1.3
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]     Checking crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling secp256k1-sys v0.8.2
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking uint v0.9.5
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling home v0.5.11
[INFO] [stderr]    Compiling whoami v1.6.0
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking sha-1 v0.9.8
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]     Checking rayon-core v1.12.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking base64 v0.13.1
[INFO] [stderr]     Checking anstyle-query v1.1.4
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking env_filter v0.1.3
[INFO] [stderr]     Checking headers v0.3.9
[INFO] [stderr]     Checking crossbeam-channel v0.5.15
[INFO] [stderr]     Checking anstream v0.6.20
[INFO] [stderr]     Checking futures-timer v3.0.3
[INFO] [stderr]     Checking jiff v0.2.15
[INFO] [stderr]     Checking arrayvec v0.7.6
[INFO] [stderr]     Checking half v2.6.0
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking clap_lex v0.7.5
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking crossbeam v0.8.4
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking clap_builder v4.5.43
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking walkdir v2.5.0
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]     Checking oorandom v11.1.5
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking zerovec v0.11.4
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking env_logger v0.11.8
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking clap v4.5.43
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]     Checking rustls-webpki v0.101.7
[INFO] [stderr]     Checking sct v0.7.1
[INFO] [stderr]     Checking secp256k1 v0.27.0
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking soketto v0.7.1
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking impl-serde v0.4.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking ciborium v0.2.2
[INFO] [stderr]     Checking tokio-util v0.7.16
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking ethbloom v0.13.0
[INFO] [stderr]     Checking primitive-types v0.12.2
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking jsonrpc-core v18.0.0
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]     Checking ethereum-types v0.14.1
[INFO] [stderr]     Checking ethabi v18.0.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking criterion-plot v0.5.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking sqlx-core v0.7.4
[INFO] [stderr]     Checking web3-async-native-tls v0.4.0
[INFO] [stderr]     Checking criterion v0.5.1
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking sqlx-postgres v0.7.4
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking web3 v0.19.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]     Checking sqlx v0.7.4
[INFO] [stderr]     Checking v26meme v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `AtomicI64`
[INFO] [stdout]  --> core/risk_manager.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicI64, Ordering};
[INFO] [stdout]   |                                     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AtomicI64`
[INFO] [stdout]  --> core/risk_manager.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicI64, Ordering};
[INFO] [stdout]   |                                     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]    --> core/discovery_engine.rs:141:40
[INFO] [stdout]     |
[INFO] [stdout] 141 |     async fn execute_test_trade(&self, h: &Hypothesis, capital: f64) -> TestResult {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `starting_capital` is never read
[INFO] [stdout]   --> core/risk_manager.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     starting_capital: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `entry_price`, `entry_time`, `stop_loss`, and `take_profit` are never read
[INFO] [stdout]   --> core/risk_manager.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Position {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 40 |     entry_price: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 41 |     entry_time: DateTime<Utc>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     stop_loss: f64,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 43 |     take_profit: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `starting_capital` is never read
[INFO] [stdout]   --> core/risk_manager.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     starting_capital: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `entry_price`, `entry_time`, `stop_loss`, and `take_profit` are never read
[INFO] [stdout]   --> core/risk_manager.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Position {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 40 |     entry_price: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 41 |     entry_time: DateTime<Utc>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     stop_loss: f64,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 43 |     take_profit: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]    --> core/discovery_engine.rs:267:17
[INFO] [stdout]     |
[INFO] [stdout] 267 |             let result = self.test_hypothesis(&hypothesis).await;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]    --> core/discovery_engine.rs:141:40
[INFO] [stdout]     |
[INFO] [stdout] 141 |     async fn execute_test_trade(&self, h: &Hypothesis, capital: f64) -> TestResult {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]    --> core/discovery_engine.rs:267:17
[INFO] [stdout]     |
[INFO] [stdout] 267 |             let result = self.test_hypothesis(&hypothesis).await;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AtomicI64`
[INFO] [stdout]  --> core/risk_manager.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicI64, Ordering};
[INFO] [stdout]   |                                     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `discovery_engine::*`
[INFO] [stdout]  --> core/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use discovery_engine::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `risk_manager::*`
[INFO] [stdout]  --> core/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use risk_manager::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AtomicI64`
[INFO] [stdout]  --> core/risk_manager.rs:1:37
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicI64, Ordering};
[INFO] [stdout]   |                                     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `discovery_engine::*`
[INFO] [stdout]  --> core/mod.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use discovery_engine::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `risk_manager::*`
[INFO] [stdout]  --> core/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use risk_manager::*;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]    --> core/discovery_engine.rs:141:40
[INFO] [stdout]     |
[INFO] [stdout] 141 |     async fn execute_test_trade(&self, h: &Hypothesis, capital: f64) -> TestResult {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `h`
[INFO] [stdout]    --> core/discovery_engine.rs:141:40
[INFO] [stdout]     |
[INFO] [stdout] 141 |     async fn execute_test_trade(&self, h: &Hypothesis, capital: f64) -> TestResult {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_h`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]    --> core/discovery_engine.rs:267:17
[INFO] [stdout]     |
[INFO] [stdout] 267 |             let result = self.test_hypothesis(&hypothesis).await;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]    --> core/discovery_engine.rs:267:17
[INFO] [stdout]     |
[INFO] [stdout] 267 |             let result = self.test_hypothesis(&hypothesis).await;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]   --> main.rs:79:29
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn start_openai_layer(db_pool: PgPool) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]    |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `risk_manager`
[INFO] [stdout]    --> main.rs:112:33
[INFO] [stdout]     |
[INFO] [stdout] 112 | async fn start_execution_engine(risk_manager: Arc<RiskManager>) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_risk_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]   --> main.rs:79:29
[INFO] [stdout]    |
[INFO] [stdout] 79 | async fn start_openai_layer(db_pool: PgPool) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]    |                             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]    --> main.rs:128:33
[INFO] [stdout]     |
[INFO] [stdout] 128 | async fn start_evolution_engine(db_pool: PgPool) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]     |                                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `risk_manager`
[INFO] [stdout]    --> main.rs:112:33
[INFO] [stdout]     |
[INFO] [stdout] 112 | async fn start_execution_engine(risk_manager: Arc<RiskManager>) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_risk_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]    --> main.rs:164:5
[INFO] [stdout]     |
[INFO] [stdout] 164 |     db_pool: PgPool, 
[INFO] [stdout]     |     ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]    --> main.rs:128:33
[INFO] [stdout]     |
[INFO] [stdout] 128 | async fn start_evolution_engine(db_pool: PgPool) -> tokio::task::JoinHandle<()> {
[INFO] [stdout]     |                                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `db_pool`
[INFO] [stdout]    --> main.rs:164:5
[INFO] [stdout]     |
[INFO] [stdout] 164 |     db_pool: PgPool, 
[INFO] [stdout]     |     ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> core/discovery_engine.rs:313:10
[INFO] [stdout]     |
[INFO] [stdout] 313 | async fn main() {
[INFO] [stdout]     |          ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> core/discovery_engine.rs:313:10
[INFO] [stdout]     |
[INFO] [stdout] 313 | async fn main() {
[INFO] [stdout]     |          ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_position_size_pct`, `max_concurrent_positions`, `min_win_rate`, `kelly_fraction`, `starting_capital`, and `position_correlations` are never read
[INFO] [stdout]   --> core/risk_manager.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout]  7 |     // Hard limits that cannot be overridden
[INFO] [stdout]  8 |     max_position_size_pct: f64,     // 0.25 (25% of capital)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     max_daily_drawdown_pct: f64,    // 0.30 (30% stop)
[INFO] [stdout] 10 |     max_concurrent_positions: u32,   // 10 per strategy type
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     min_win_rate: f64,              // 0.55 minimum to trade
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 14 |     kelly_fraction: f64,            // 0.25 (conservative)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     starting_capital: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     position_correlations: Arc<Mutex<HashMap<(String, String), f64>>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `pattern_hash`, `entry_price`, `entry_time`, `stop_loss`, and `take_profit` are never read
[INFO] [stdout]   --> core/risk_manager.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Position {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 38 |     pattern_hash: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 39 |     size: f64,
[INFO] [stdout] 40 |     entry_price: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 41 |     entry_time: DateTime<Utc>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     stop_loss: f64,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 43 |     take_profit: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `calculate_position_size`, `approve_order`, `calculate_portfolio_correlation`, `update_capital`, and `clean_old_losses` are never used
[INFO] [stdout]    --> core/risk_manager.rs:72:12
[INFO] [stdout]     |
[INFO] [stdout]  46 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  72 |     pub fn calculate_position_size(&self, pattern: &Pattern, available_capital: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 219 |     pub fn approve_order(&self, pattern_hash: &str, size: f64) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     fn calculate_portfolio_correlation(&self, new_pattern: &str) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     pub fn update_capital(&self, new_capital: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 306 |     fn clean_old_losses(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pattern` is never constructed
[INFO] [stdout]    --> core/risk_manager.rs:346:12
[INFO] [stdout]     |
[INFO] [stdout] 346 | pub struct Pattern {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> core/risk_manager.rs:355:10
[INFO] [stdout]     |
[INFO] [stdout] 355 | async fn main() {
[INFO] [stdout]     |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_position_size_pct`, `max_concurrent_positions`, `min_win_rate`, `kelly_fraction`, `starting_capital`, and `position_correlations` are never read
[INFO] [stdout]   --> core/risk_manager.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout]  7 |     // Hard limits that cannot be overridden
[INFO] [stdout]  8 |     max_position_size_pct: f64,     // 0.25 (25% of capital)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     max_daily_drawdown_pct: f64,    // 0.30 (30% stop)
[INFO] [stdout] 10 |     max_concurrent_positions: u32,   // 10 per strategy type
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     min_win_rate: f64,              // 0.55 minimum to trade
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 14 |     kelly_fraction: f64,            // 0.25 (conservative)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     starting_capital: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     position_correlations: Arc<Mutex<HashMap<(String, String), f64>>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `pattern_hash`, `entry_price`, `entry_time`, `stop_loss`, and `take_profit` are never read
[INFO] [stdout]   --> core/risk_manager.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Position {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 38 |     pattern_hash: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 39 |     size: f64,
[INFO] [stdout] 40 |     entry_price: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 41 |     entry_time: DateTime<Utc>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     stop_loss: f64,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 43 |     take_profit: f64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `calculate_position_size`, `approve_order`, `calculate_portfolio_correlation`, `update_capital`, and `clean_old_losses` are never used
[INFO] [stdout]    --> core/risk_manager.rs:72:12
[INFO] [stdout]     |
[INFO] [stdout]  46 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  72 |     pub fn calculate_position_size(&self, pattern: &Pattern, available_capital: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 219 |     pub fn approve_order(&self, pattern_hash: &str, size: f64) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     fn calculate_portfolio_correlation(&self, new_pattern: &str) -> f64 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     pub fn update_capital(&self, new_capital: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 306 |     fn clean_old_losses(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pattern` is never constructed
[INFO] [stdout]    --> core/risk_manager.rs:346:12
[INFO] [stdout]     |
[INFO] [stdout] 346 | pub struct Pattern {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]    --> core/risk_manager.rs:355:10
[INFO] [stdout]     |
[INFO] [stdout] 355 | async fn main() {
[INFO] [stdout]     |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.97s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4
[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" "6bff7b09bace01402ee6859dad0cae0b972cb2feda3dfec2eae033df47295b8c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6bff7b09bace01402ee6859dad0cae0b972cb2feda3dfec2eae033df47295b8c", kill_on_drop: false }`
[INFO] [stdout] 6bff7b09bace01402ee6859dad0cae0b972cb2feda3dfec2eae033df47295b8c
