[INFO] cloning repository https://github.com/luthfanzidane/polymarket-autotrader
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luthfanzidane/polymarket-autotrader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluthfanzidane%2Fpolymarket-autotrader", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluthfanzidane%2Fpolymarket-autotrader'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdd4499b00ac780e99ba073f27db218083abe444
[INFO] testing luthfanzidane/polymarket-autotrader against beta-2026-04-21 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluthfanzidane%2Fpolymarket-autotrader" "/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/luthfanzidane/polymarket-autotrader
[INFO] finished tweaking git repo https://github.com/luthfanzidane/polymarket-autotrader
[INFO] tweaked toml for git repo https://github.com/luthfanzidane/polymarket-autotrader written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/luthfanzidane/polymarket-autotrader on toolchain beta-2026-04-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/luthfanzidane/polymarket-autotrader 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" "+beta-2026-04-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5828aa2d30053b8c9253216cc819841297b7db0f556fd6ffcb08cf09cf1e98b2
[INFO] running `Command { std: "docker" "start" "-a" "5828aa2d30053b8c9253216cc819841297b7db0f556fd6ffcb08cf09cf1e98b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5828aa2d30053b8c9253216cc819841297b7db0f556fd6ffcb08cf09cf1e98b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5828aa2d30053b8c9253216cc819841297b7db0f556fd6ffcb08cf09cf1e98b2", kill_on_drop: false }`
[INFO] [stdout] 5828aa2d30053b8c9253216cc819841297b7db0f556fd6ffcb08cf09cf1e98b2
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a8b4366b5b631563582137cee71789d240b8343e6289469bb65c82fa2ad47fb5
[INFO] running `Command { std: "docker" "start" "-a" "a8b4366b5b631563582137cee71789d240b8343e6289469bb65c82fa2ad47fb5", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.23
[INFO] [stderr]    Compiling libc v0.2.181
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling cc v1.2.55
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling base16ct v0.2.0
[INFO] [stderr]    Compiling zmij v1.0.20
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling regex-syntax v0.8.9
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling rust_decimal v1.40.0
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling sec1 v0.7.3
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling socket2 v0.6.2
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling rfc6979 v0.4.0
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling ff v0.13.1
[INFO] [stderr]    Compiling crypto-bigint v0.5.5
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling uuid v1.20.0
[INFO] [stderr]    Compiling group v0.13.0
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling elliptic-curve v0.13.8
[INFO] [stderr]    Compiling ecdsa v0.16.9
[INFO] [stderr]    Compiling k256 v0.13.4
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling rust_decimal_macros v1.40.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling chrono v0.4.43
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.4.13
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling polymarket-autotrader v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/positions.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/positions.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> src/positions.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, debug};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> src/clob.rs:9:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tracing::{info, warn, debug};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buy_side`
[INFO] [stdout]    --> src/scanner.rs:265:25
[INFO] [stdout]     |
[INFO] [stdout] 265 |         let (buy_price, buy_side) = if yes_price <= no_price {
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buy_side`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vol_total`
[INFO] [stdout]    --> src/scanner.rs:296:75
[INFO] [stdout]     |
[INFO] [stdout] 296 |     fn score_opportunity(&self, price: f64, liquidity: f64, vol_24h: f64, vol_total: f64, discovery_type: &DiscoveryType) -> f64 {
[INFO] [stdout]     |                                                                           ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vol_total`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/positions.rs:74:13
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut signals = Vec::new();
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]   --> src/scanner.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct GammaMarket {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub active: bool,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GammaMarket` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `title` is never read
[INFO] [stdout]   --> src/scanner.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub struct GammaEvent {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub title: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GammaEvent` 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: methods `record_close` and `sync_positions` are never used
[INFO] [stdout]    --> src/risk.rs:95:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  95 |     pub fn record_close(&mut self, condition_id: &str, amount: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn sync_positions(&mut self, count: usize, total_exposure: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `trades` and `trades_by_status` are never used
[INFO] [stdout]    --> src/executor.rs:176:12
[INFO] [stdout]     |
[INFO] [stdout]  57 | impl Executor {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn trades(&self) -> &[Trade] {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn trades_by_status(&self, status: TradeStatus) -> Vec<&Trade> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `positions` is never used
[INFO] [stdout]    --> src/positions.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout]  32 | impl PositionTracker {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn positions(&self) -> &[Position] {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `condition_id` and `token_id` are never read
[INFO] [stdout]    --> src/positions.rs:175:9
[INFO] [stdout]     |
[INFO] [stdout] 174 | pub struct ExitSignal {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout] 175 |     pub condition_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 176 |     pub token_id: String,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ExitSignal` 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 `send_daily_summary` is never used
[INFO] [stdout]    --> src/telegram.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  15 | impl TelegramNotifier {
[INFO] [stdout]     | --------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn send_daily_summary(&self, summary: &str, risk_summary: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Sell` is never constructed
[INFO] [stdout]   --> src/clob.rs:19:27
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OrderSide { Buy, Sell }
[INFO] [stdout]    |          ---------        ^^^^
[INFO] [stdout]    |          |
[INFO] [stdout]    |          variant in this enum
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OrderSide` 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: methods `is_authenticated` and `cancel_order` are never used
[INFO] [stdout]    --> src/clob.rs:64:12
[INFO] [stdout]     |
[INFO] [stdout]  49 | impl ClobClient {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  64 |     pub fn is_authenticated(&self) -> bool { self.authenticated }
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s
[INFO] running `Command { std: "docker" "inspect" "a8b4366b5b631563582137cee71789d240b8343e6289469bb65c82fa2ad47fb5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a8b4366b5b631563582137cee71789d240b8343e6289469bb65c82fa2ad47fb5", kill_on_drop: false }`
[INFO] [stdout] a8b4366b5b631563582137cee71789d240b8343e6289469bb65c82fa2ad47fb5
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c20253f4b191a6aed573e16fa3fc5e2ae3a500b3f2aaff42ee8e2ff2aaa4b43c
[INFO] running `Command { std: "docker" "start" "-a" "c20253f4b191a6aed573e16fa3fc5e2ae3a500b3f2aaff42ee8e2ff2aaa4b43c", kill_on_drop: false }`
[INFO] [stderr]    Compiling polymarket-autotrader v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/positions.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/positions.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> src/positions.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, debug};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> src/clob.rs:9:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tracing::{info, warn, debug};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buy_side`
[INFO] [stdout]    --> src/scanner.rs:265:25
[INFO] [stdout]     |
[INFO] [stdout] 265 |         let (buy_price, buy_side) = if yes_price <= no_price {
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buy_side`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vol_total`
[INFO] [stdout]    --> src/scanner.rs:296:75
[INFO] [stdout]     |
[INFO] [stdout] 296 |     fn score_opportunity(&self, price: f64, liquidity: f64, vol_24h: f64, vol_total: f64, discovery_type: &DiscoveryType) -> f64 {
[INFO] [stdout]     |                                                                           ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vol_total`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/positions.rs:74:13
[INFO] [stdout]    |
[INFO] [stdout] 74 |         let mut signals = Vec::new();
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]   --> src/scanner.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct GammaMarket {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub active: bool,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GammaMarket` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `title` is never read
[INFO] [stdout]   --> src/scanner.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub struct GammaEvent {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub title: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GammaEvent` 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: methods `record_close` and `sync_positions` are never used
[INFO] [stdout]    --> src/risk.rs:95:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  95 |     pub fn record_close(&mut self, condition_id: &str, amount: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn sync_positions(&mut self, count: usize, total_exposure: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `trades` and `trades_by_status` are never used
[INFO] [stdout]    --> src/executor.rs:176:12
[INFO] [stdout]     |
[INFO] [stdout]  57 | impl Executor {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn trades(&self) -> &[Trade] {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn trades_by_status(&self, status: TradeStatus) -> Vec<&Trade> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `positions` is never used
[INFO] [stdout]    --> src/positions.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout]  32 | impl PositionTracker {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn positions(&self) -> &[Position] {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `condition_id` and `token_id` are never read
[INFO] [stdout]    --> src/positions.rs:175:9
[INFO] [stdout]     |
[INFO] [stdout] 174 | pub struct ExitSignal {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout] 175 |     pub condition_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 176 |     pub token_id: String,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ExitSignal` 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 `send_daily_summary` is never used
[INFO] [stdout]    --> src/telegram.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  15 | impl TelegramNotifier {
[INFO] [stdout]     | --------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn send_daily_summary(&self, summary: &str, risk_summary: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Sell` is never constructed
[INFO] [stdout]   --> src/clob.rs:19:27
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum OrderSide { Buy, Sell }
[INFO] [stdout]    |          ---------        ^^^^
[INFO] [stdout]    |          |
[INFO] [stdout]    |          variant in this enum
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OrderSide` 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: methods `is_authenticated` and `cancel_order` are never used
[INFO] [stdout]    --> src/clob.rs:64:12
[INFO] [stdout]     |
[INFO] [stdout]  49 | impl ClobClient {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  64 |     pub fn is_authenticated(&self) -> bool { self.authenticated }
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.19s
[INFO] running `Command { std: "docker" "inspect" "c20253f4b191a6aed573e16fa3fc5e2ae3a500b3f2aaff42ee8e2ff2aaa4b43c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c20253f4b191a6aed573e16fa3fc5e2ae3a500b3f2aaff42ee8e2ff2aaa4b43c", kill_on_drop: false }`
[INFO] [stdout] c20253f4b191a6aed573e16fa3fc5e2ae3a500b3f2aaff42ee8e2ff2aaa4b43c
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6e733fe7f917f8225e89e82cdd536937810a9c7be4e398ee78f4d1d66f909eaf
[INFO] running `Command { std: "docker" "start" "-a" "6e733fe7f917f8225e89e82cdd536937810a9c7be4e398ee78f4d1d66f909eaf", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `anyhow::Result`
[INFO] [stderr]  --> src/positions.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use anyhow::Result;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `chrono::Utc`
[INFO] [stderr]  --> src/positions.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use chrono::Utc;
[INFO] [stderr]   |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `debug`
[INFO] [stderr]  --> src/positions.rs:4:21
[INFO] [stderr]   |
[INFO] [stderr] 4 | use tracing::{info, debug};
[INFO] [stderr]   |                     ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `debug`
[INFO] [stderr]  --> src/clob.rs:9:27
[INFO] [stderr]   |
[INFO] [stderr] 9 | use tracing::{info, warn, debug};
[INFO] [stderr]   |                           ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `buy_side`
[INFO] [stderr]    --> src/scanner.rs:265:25
[INFO] [stderr]     |
[INFO] [stderr] 265 |         let (buy_price, buy_side) = if yes_price <= no_price {
[INFO] [stderr]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buy_side`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `vol_total`
[INFO] [stderr]    --> src/scanner.rs:296:75
[INFO] [stderr]     |
[INFO] [stderr] 296 |     fn score_opportunity(&self, price: f64, liquidity: f64, vol_24h: f64, vol_total: f64, discovery_type: &DiscoveryType) -> f64 {
[INFO] [stderr]     |                                                                           ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vol_total`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/positions.rs:74:13
[INFO] [stderr]    |
[INFO] [stderr] 74 |         let mut signals = Vec::new();
[INFO] [stderr]    |             ----^^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `active` is never read
[INFO] [stderr]   --> src/scanner.rs:68:9
[INFO] [stderr]    |
[INFO] [stderr] 52 | pub struct GammaMarket {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 68 |     pub active: bool,
[INFO] [stderr]    |         ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `GammaMarket` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `title` is never read
[INFO] [stderr]   --> src/scanner.rs:94:9
[INFO] [stderr]    |
[INFO] [stderr] 90 | pub struct GammaEvent {
[INFO] [stderr]    |            ---------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 94 |     pub title: Option<String>,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `GammaEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `record_close` and `sync_positions` are never used
[INFO] [stderr]    --> src/risk.rs:95:12
[INFO] [stderr]     |
[INFO] [stderr]  17 | impl RiskManager {
[INFO] [stderr]     | ---------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  95 |     pub fn record_close(&mut self, condition_id: &str, amount: f64) {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 102 |     pub fn sync_positions(&mut self, count: usize, total_exposure: f64) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `trades` and `trades_by_status` are never used
[INFO] [stderr]    --> src/executor.rs:176:12
[INFO] [stderr]     |
[INFO] [stderr]  57 | impl Executor {
[INFO] [stderr]     | ------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 176 |     pub fn trades(&self) -> &[Trade] {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 181 |     pub fn trades_by_status(&self, status: TradeStatus) -> Vec<&Trade> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `positions` is never used
[INFO] [stderr]    --> src/positions.rs:129:12
[INFO] [stderr]     |
[INFO] [stderr]  32 | impl PositionTracker {
[INFO] [stderr]     | -------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 129 |     pub fn positions(&self) -> &[Position] {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `condition_id` and `token_id` are never read
[INFO] [stderr]    --> src/positions.rs:175:9
[INFO] [stderr]     |
[INFO] [stderr] 174 | pub struct ExitSignal {
[INFO] [stderr]     |            ---------- fields in this struct
[INFO] [stderr] 175 |     pub condition_id: String,
[INFO] [stderr]     |         ^^^^^^^^^^^^
[INFO] [stderr] 176 |     pub token_id: String,
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `ExitSignal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `send_daily_summary` is never used
[INFO] [stderr]    --> src/telegram.rs:121:18
[INFO] [stderr]     |
[INFO] [stderr]  15 | impl TelegramNotifier {
[INFO] [stderr]     | --------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 121 |     pub async fn send_daily_summary(&self, summary: &str, risk_summary: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `Sell` is never constructed
[INFO] [stderr]   --> src/clob.rs:19:27
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub enum OrderSide { Buy, Sell }
[INFO] [stderr]    |          ---------        ^^^^
[INFO] [stderr]    |          |
[INFO] [stderr]    |          variant in this enum
[INFO] [stderr]    |
[INFO] [stderr]    = note: `OrderSide` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `is_authenticated` and `cancel_order` are never used
[INFO] [stderr]    --> src/clob.rs:64:12
[INFO] [stderr]     |
[INFO] [stderr]  49 | impl ClobClient {
[INFO] [stderr]     | --------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  64 |     pub fn is_authenticated(&self) -> bool { self.authenticated }
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 181 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `polymarket-autotrader` (bin "polymarket-autotrader" test) generated 16 warnings (run `cargo fix --bin "polymarket-autotrader" -p polymarket-autotrader --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/polymarket_autotrader-311f6477c9d04eb0)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "6e733fe7f917f8225e89e82cdd536937810a9c7be4e398ee78f4d1d66f909eaf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e733fe7f917f8225e89e82cdd536937810a9c7be4e398ee78f4d1d66f909eaf", kill_on_drop: false }`
[INFO] [stdout] 6e733fe7f917f8225e89e82cdd536937810a9c7be4e398ee78f4d1d66f909eaf
