[INFO] cloning repository https://github.com/cyborg42/hurribot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cyborg42/hurribot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyborg42%2Fhurribot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyborg42%2Fhurribot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ee14231b92829185c0d2ce264b2a7f3af480e53 [INFO] building cyborg42/hurribot against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcyborg42%2Fhurribot" "/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/cyborg42/hurribot on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cyborg42/hurribot [INFO] finished tweaking git repo https://github.com/cyborg42/hurribot [INFO] tweaked toml for git repo https://github.com/cyborg42/hurribot written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cyborg42/hurribot 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/cyborg42/binance-rs.git` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy v0.6.6 [INFO] [stderr] Downloaded plotters-svg v0.3.6 [INFO] [stderr] Downloaded security-framework-sys v2.11.1 [INFO] [stderr] Downloaded core-text v20.1.0 [INFO] [stderr] Downloaded plotters-bitmap v0.3.6 [INFO] [stderr] Downloaded ppv-lite86 v0.2.18 [INFO] [stderr] Downloaded dashmap v6.0.1 [INFO] [stderr] Downloaded pathfinder_simd v0.5.4 [INFO] [stderr] Downloaded clap v4.5.11 [INFO] [stderr] Downloaded font-kit v0.13.2 [INFO] [stderr] Downloaded plotters v0.3.6 [INFO] [stderr] Downloaded toml v0.8.16 [INFO] [stderr] Downloaded clap_builder v4.5.11 [INFO] [stderr] Downloaded serde_json v1.0.121 [INFO] [stderr] Downloaded bytes v1.6.1 [INFO] [stderr] Downloaded toml_edit v0.22.17 [INFO] [stderr] Downloaded plotters-backend v0.3.6 [INFO] [stderr] Downloaded toml_datetime v0.6.7 [INFO] [stderr] Downloaded float-ord v0.3.2 [INFO] [stderr] Downloaded cstr v0.2.12 [INFO] [stderr] Downloaded yeslogic-fontconfig-sys v5.0.0 [INFO] [stderr] Downloaded zerocopy-derive v0.6.6 [INFO] [stderr] Downloaded freetype-sys v0.20.1 [INFO] [stderr] Downloaded tuples v1.15.0 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2961913153dd27599b4e85bdbb5269f332f5354404ea57e5dd9e955ce2785765 [INFO] running `Command { std: "docker" "start" "-a" "2961913153dd27599b4e85bdbb5269f332f5354404ea57e5dd9e955ce2785765", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2961913153dd27599b4e85bdbb5269f332f5354404ea57e5dd9e955ce2785765", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2961913153dd27599b4e85bdbb5269f332f5354404ea57e5dd9e955ce2785765", kill_on_drop: false }` [INFO] [stdout] 2961913153dd27599b4e85bdbb5269f332f5354404ea57e5dd9e955ce2785765 [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=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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 591c462e6216e04541fb466bb9b2fe8a487206ab297431570a27cb913dd9f5d0 [INFO] running `Command { std: "docker" "start" "-a" "591c462e6216e04541fb466bb9b2fe8a487206ab297431570a27cb913dd9f5d0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bytes v1.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v5.0.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling cstr v0.2.12 [INFO] [stderr] Compiling object v0.36.2 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling plotters-backend v0.3.6 [INFO] [stderr] Compiling bytemuck v1.16.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling font-kit v0.13.2 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling clap_builder v4.5.11 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling winnow v0.6.16 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling plotters-svg v0.3.6 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling clap v4.5.11 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling dashmap v6.0.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling plotters-bitmap v0.3.6 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling tuples v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.6.6 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling plotters v0.3.6 [INFO] [stderr] Compiling zerocopy v0.6.6 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling ppv-lite86 v0.2.18 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling toml_datetime v0.6.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.7 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling toml_edit v0.22.17 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling toml v0.8.16 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling binance v0.21.0 (https://github.com/cyborg42/binance-rs.git#9ee76ebf) [INFO] [stderr] Compiling hurribot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Receiver` and `unbounded` [INFO] [stdout] --> src/algorithm.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `any::Any`, `collections::HashMap`, `sleep`, and `time::Duration` [INFO] [stdout] --> src/controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | }, [INFO] [stdout] 9 | thread::{sleep, JoinHandle}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ok` and `anyhow` [INFO] [stdout] --> src/controller.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use anyhow::{anyhow, Ok}; [INFO] [stdout] | ^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Select` and `Sender` [INFO] [stdout] --> src/controller.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | use crossbeam::channel::{Receiver, Select, Sender}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/controller.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/controller.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrategyOrderReturn` [INFO] [stdout] --> src/controller.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | strategy::{Strategy, StrategyOrderReturn}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/market.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator`, and `result` [INFO] [stdout] --> src/market.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | iter::{ParallelBridge, ParallelIterator}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/controller.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `time: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/controller.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `order: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval` is never read [INFO] [stdout] --> src/backtest/candle_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CandleChart { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | /// k线间隔(秒) [INFO] [stdout] 9 | interval: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CandleChart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl RollOnceStrategy { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 30 | fn new(is_bull: bool, capital: f64, config: RollConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `linear` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl RollConfig { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 155 | pub fn new(config: Vec<(Leverage, TakeProfit, MaxDraw)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn linear(k: f64, b: f64, max: f64, _step: f64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RollJudge` is never constructed [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct RollJudge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `max`, `min`, `is_max`, and `is_min` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 191 | impl RollJudge { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | fn new(max_length: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn update(&mut self, candle: &CandleData) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn max(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn min(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn is_max(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn is_min(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Controller` is never constructed [INFO] [stdout] --> src/controller.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Controller { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Controller` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `input_signal`, and `update_account` are never used [INFO] [stdout] --> src/controller.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Controller { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 40 | fn run( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn input_signal(&self, signal: SymbolPrice) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn update_account(&self, account_info: AccountInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/controller.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/controller.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | self.market.order(market_order_request); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = self.market.order(market_order_request); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `market` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | market, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price_rx` [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prices` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_keys` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let binance_keys = BinanceKeys::value_parse("./config/binance_keys.toml").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "591c462e6216e04541fb466bb9b2fe8a487206ab297431570a27cb913dd9f5d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "591c462e6216e04541fb466bb9b2fe8a487206ab297431570a27cb913dd9f5d0", kill_on_drop: false }` [INFO] [stdout] 591c462e6216e04541fb466bb9b2fe8a487206ab297431570a27cb913dd9f5d0 [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=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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 900d0ed4a02bca0e4c07c06cf9ca32d71c02e59025b711e91c83b5f8ca406479 [INFO] running `Command { std: "docker" "start" "-a" "900d0ed4a02bca0e4c07c06cf9ca32d71c02e59025b711e91c83b5f8ca406479", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Receiver` and `unbounded` [INFO] [stdout] --> src/algorithm.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `any::Any`, `collections::HashMap`, `sleep`, and `time::Duration` [INFO] [stdout] --> src/controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | }, [INFO] [stdout] 9 | thread::{sleep, JoinHandle}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ok` and `anyhow` [INFO] [stdout] --> src/controller.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use anyhow::{anyhow, Ok}; [INFO] [stdout] | ^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Select` and `Sender` [INFO] [stdout] --> src/controller.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | use crossbeam::channel::{Receiver, Select, Sender}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/controller.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/controller.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrategyOrderReturn` [INFO] [stdout] --> src/controller.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | strategy::{Strategy, StrategyOrderReturn}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/market.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator`, and `result` [INFO] [stdout] --> src/market.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | iter::{ParallelBridge, ParallelIterator}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/controller.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `time: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/controller.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `order: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval` is never read [INFO] [stdout] --> src/backtest/candle_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CandleChart { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | /// k线间隔(秒) [INFO] [stdout] 9 | interval: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CandleChart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl RollOnceStrategy { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 30 | fn new(is_bull: bool, capital: f64, config: RollConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `linear` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl RollConfig { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 155 | pub fn new(config: Vec<(Leverage, TakeProfit, MaxDraw)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn linear(k: f64, b: f64, max: f64, _step: f64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RollJudge` is never constructed [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct RollJudge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `max`, `min`, `is_max`, and `is_min` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 191 | impl RollJudge { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | fn new(max_length: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn update(&mut self, candle: &CandleData) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn max(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn min(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn is_max(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn is_min(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hurribot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Controller` is never constructed [INFO] [stdout] --> src/controller.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Controller { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Controller` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `input_signal`, and `update_account` are never used [INFO] [stdout] --> src/controller.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Controller { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 40 | fn run( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn input_signal(&self, signal: SymbolPrice) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn update_account(&self, account_info: AccountInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/controller.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/controller.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | self.market.order(market_order_request); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = self.market.order(market_order_request); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `market` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | market, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price_rx` [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prices` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_keys` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let binance_keys = BinanceKeys::value_parse("./config/binance_keys.toml").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `market` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | market, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price_rx` [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prices` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let (price_rx, prices, conn_h) = FuturesWsConnection::run_price_info(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_keys` [INFO] [stdout] --> src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let binance_keys = BinanceKeys::value_parse("./config/binance_keys.toml").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_keys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `unbounded` [INFO] [stdout] --> src/algorithm.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam::channel::{unbounded, Receiver}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `any::Any`, `collections::HashMap`, `sleep`, and `time::Duration` [INFO] [stdout] --> src/controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | }, [INFO] [stdout] 9 | thread::{sleep, JoinHandle}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ok` and `anyhow` [INFO] [stdout] --> src/controller.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use anyhow::{anyhow, Ok}; [INFO] [stdout] | ^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Select` and `Sender` [INFO] [stdout] --> src/controller.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | use crossbeam::channel::{Receiver, Select, Sender}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scope` [INFO] [stdout] --> src/controller.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/controller.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrategyOrderReturn` [INFO] [stdout] --> src/controller.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | strategy::{Strategy, StrategyOrderReturn}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver` and `Sender` [INFO] [stdout] --> src/market.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParallelBridge`, `ParallelIterator`, and `result` [INFO] [stdout] --> src/market.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | iter::{ParallelBridge, ParallelIterator}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `any::Any`, `atomic::AtomicI32`, and `thread::sleep` [INFO] [stdout] --> tests/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | any::Any, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | sync::{atomic::AtomicI32, Arc}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] 4 | thread::sleep, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> tests/tests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude::*` [INFO] [stdout] --> tests/tests.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/controller.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use rayon::{prelude::*, Scope}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/controller.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `time: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/controller.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | AccountInfo::OrderTrade { time, order } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `order: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval` is never read [INFO] [stdout] --> src/backtest/candle_chart.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CandleChart { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | /// k线间隔(秒) [INFO] [stdout] 9 | interval: Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CandleChart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `linear` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl RollConfig { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 155 | pub fn new(config: Vec<(Leverage, TakeProfit, MaxDraw)>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn linear(k: f64, b: f64, max: f64, _step: f64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RollJudge` is never constructed [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | struct RollJudge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `max`, `min`, `is_max`, and `is_min` are never used [INFO] [stdout] --> src/backtest/strategy/roll_strategy.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 191 | impl RollJudge { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | fn new(max_length: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn update(&mut self, candle: &CandleData) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn max(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn min(&self, size: usize) -> CandleData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | fn is_max(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn is_min(&self, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Controller` is never constructed [INFO] [stdout] --> src/controller.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Controller { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Controller` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `input_signal`, and `update_account` are never used [INFO] [stdout] --> src/controller.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Controller { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 40 | fn run( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn input_signal(&self, signal: SymbolPrice) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn update_account(&self, account_info: AccountInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/controller.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Default`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/controller.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | self.market.order(market_order_request); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = self.market.order(market_order_request); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.19s [INFO] running `Command { std: "docker" "inspect" "900d0ed4a02bca0e4c07c06cf9ca32d71c02e59025b711e91c83b5f8ca406479", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "900d0ed4a02bca0e4c07c06cf9ca32d71c02e59025b711e91c83b5f8ca406479", kill_on_drop: false }` [INFO] [stdout] 900d0ed4a02bca0e4c07c06cf9ca32d71c02e59025b711e91c83b5f8ca406479