[INFO] cloning repository https://github.com/masapasa/trader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/masapasa/trader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasapasa%2Ftrader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasapasa%2Ftrader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c746cc045b0d7fc530762a44a84231d1e30fc099 [INFO] checking masapasa/trader against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasapasa%2Ftrader" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/masapasa/trader on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/masapasa/trader [INFO] finished tweaking git repo https://github.com/masapasa/trader [INFO] tweaked toml for git repo https://github.com/masapasa/trader written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/masapasa/trader 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e486bb4d745e278b6730d9672ab892fd2517cee42832dcf603da8d583d2c1a6 [INFO] running `Command { std: "docker" "start" "-a" "9e486bb4d745e278b6730d9672ab892fd2517cee42832dcf603da8d583d2c1a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e486bb4d745e278b6730d9672ab892fd2517cee42832dcf603da8d583d2c1a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e486bb4d745e278b6730d9672ab892fd2517cee42832dcf603da8d583d2c1a6", kill_on_drop: false }` [INFO] [stdout] 9e486bb4d745e278b6730d9672ab892fd2517cee42832dcf603da8d583d2c1a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b47f837a0eb604f95cc042e4d255343fbd5b75c376ad16e86eb22d8e27eff016 [INFO] running `Command { std: "docker" "start" "-a" "b47f837a0eb604f95cc042e4d255343fbd5b75c376ad16e86eb22d8e27eff016", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling crossbeam-epoch v0.9.7 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_pcg v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking trade_optimizer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Candlestick` [INFO] [stdout] --> src/indicators/true_range.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::candlestick::{Candlestick, Close, High, Low}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/backtest/trade.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Candlestick`, `load_candlesticks` [INFO] [stdout] --> src/brkga.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::candlestick::{Candlestick, load_candlesticks}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/backtest/trade.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Candlestick` [INFO] [stdout] --> src/brkga.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::candlestick::{Candlestick, load_candlesticks}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_stoploss` [INFO] [stdout] --> src/backtest.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let mut current_stoploss: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_stoploss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_takeprofit` [INFO] [stdout] --> src/backtest.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut current_takeprofit: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_takeprofit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backtest.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut current_stoploss: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backtest.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut current_takeprofit: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `open_timestamp` and `initial_position_size` are never read [INFO] [stdout] --> src/backtest/trade.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | open_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub initial_position_size: f32, // initial value of the position in USD without leverage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `increase_position`, `close`, `minutes_open`, and `check_profit` are never used [INFO] [stdout] --> src/backtest/trade.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Trade { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn increase_position(&mut self, current_candle: &Candlestick, position_size_increase: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn close(&mut self, end_candle: &Candlestick) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn minutes_open(&self) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn check_profit(&self, current_candle: &Candlestick) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FitnessFunction` is never used [INFO] [stdout] --> src/brkga.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | trait FitnessFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_stoploss` [INFO] [stdout] --> src/backtest.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let mut current_stoploss: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_stoploss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_takeprofit` [INFO] [stdout] --> src/backtest.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut current_takeprofit: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_takeprofit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backtest.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let mut current_stoploss: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backtest.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | let mut current_takeprofit: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/backtest.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | for i in 0..100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `open_timestamp` and `initial_position_size` are never read [INFO] [stdout] --> src/backtest/trade.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 7 | open_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub initial_position_size: f32, // initial value of the position in USD without leverage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `increase_position`, `minutes_open`, and `check_profit` are never used [INFO] [stdout] --> src/backtest/trade.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Trade { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn increase_position(&mut self, current_candle: &Candlestick, position_size_increase: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn minutes_open(&self) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn check_profit(&self, current_candle: &Candlestick) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FitnessFunction` is never used [INFO] [stdout] --> src/brkga.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | trait FitnessFunction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 14.10s [INFO] running `Command { std: "docker" "inspect" "b47f837a0eb604f95cc042e4d255343fbd5b75c376ad16e86eb22d8e27eff016", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b47f837a0eb604f95cc042e4d255343fbd5b75c376ad16e86eb22d8e27eff016", kill_on_drop: false }` [INFO] [stdout] b47f837a0eb604f95cc042e4d255343fbd5b75c376ad16e86eb22d8e27eff016