[INFO] cloning repository https://github.com/bahelms/trader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bahelms/trader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbahelms%2Ftrader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbahelms%2Ftrader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28f89857b1b6bec064039920c8b761ad6855f977 [INFO] checking bahelms/trader against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbahelms%2Ftrader" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bahelms/trader on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bahelms/trader [INFO] finished tweaking git repo https://github.com/bahelms/trader [INFO] tweaked toml for git repo https://github.com/bahelms/trader written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/bahelms/trader already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49e6cce7a21c23f92969289a5b95ce8343b198f770a8e0aa87d32d1505479766 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "49e6cce7a21c23f92969289a5b95ce8343b198f770a8e0aa87d32d1505479766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49e6cce7a21c23f92969289a5b95ce8343b198f770a8e0aa87d32d1505479766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49e6cce7a21c23f92969289a5b95ce8343b198f770a8e0aa87d32d1505479766", kill_on_drop: false }` [INFO] [stdout] 49e6cce7a21c23f92969289a5b95ce8343b198f770a8e0aa87d32d1505479766 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf0e6b4ac5df0664e41bf29be6d66dc5321c4446412ea34d58b289bcd0bc8e6f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cf0e6b4ac5df0664e41bf29be6d66dc5321c4446412ea34d58b289bcd0bc8e6f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Checking chunked_transfer v1.2.0 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling time v0.2.18 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking webpki v0.21.3 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Checking rustls v0.18.1 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking serde v1.0.116 [INFO] [stderr] Checking serde_json v1.0.57 [INFO] [stderr] Checking ureq v1.4.0 [INFO] [stderr] Checking trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `client` [INFO] [stdout] --> src/apis/polygon.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn client(env: &config::Env) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Client` [INFO] [stdout] --> src/apis/polygon.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Client<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `price_history` [INFO] [stdout] --> src/apis/polygon.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn price_history( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `candles` [INFO] [stdout] --> src/apis/polygon.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | candles: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cache_results` [INFO] [stdout] --> src/apis/polygon.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn cache_results(ticker: &str, results: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `format_candle` [INFO] [stdout] --> src/apis/polygon.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn format_candle(candle: &serde_json::value::Value) -> Candle { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `datetime` [INFO] [stdout] --> src/clock.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn datetime(y: i32, month: u32, d: u32, h: u32, m: u32, s: u32) -> LocalDateTime { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Sma9CrossesSma180` [INFO] [stdout] --> src/strategies.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Sma9CrossesSma180<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/strategies.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn new(ticker: &'a String, candles: &[Candle]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entry_signal` [INFO] [stdout] --> src/strategies.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn entry_signal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exit_signal` [INFO] [stdout] --> src/strategies.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn exit_signal(&self, candle: &Candle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setup_found` [INFO] [stdout] --> src/strategies.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn setup_found(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/strategies.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn execute(&mut self, price_data: &mut PriceData, account: &mut Account<'a, B>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `client` [INFO] [stdout] --> src/apis/polygon.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn client(env: &config::Env) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Client` [INFO] [stdout] --> src/apis/polygon.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Client<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `price_history` [INFO] [stdout] --> src/apis/polygon.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn price_history( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `candles` [INFO] [stdout] --> src/apis/polygon.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | candles: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cache_results` [INFO] [stdout] --> src/apis/polygon.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn cache_results(ticker: &str, results: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `format_candle` [INFO] [stdout] --> src/apis/polygon.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn format_candle(candle: &serde_json::value::Value) -> Candle { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Sma9CrossesSma180` [INFO] [stdout] --> src/strategies.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Sma9CrossesSma180<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/strategies.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn new(ticker: &'a String, candles: &[Candle]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entry_signal` [INFO] [stdout] --> src/strategies.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn entry_signal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exit_signal` [INFO] [stdout] --> src/strategies.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn exit_signal(&self, candle: &Candle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `setup_found` [INFO] [stdout] --> src/strategies.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn setup_found(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/strategies.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn execute(&mut self, price_data: &mut PriceData, account: &mut Account<'a, B>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.59s [INFO] running `Command { std: "docker" "inspect" "cf0e6b4ac5df0664e41bf29be6d66dc5321c4446412ea34d58b289bcd0bc8e6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf0e6b4ac5df0664e41bf29be6d66dc5321c4446412ea34d58b289bcd0bc8e6f", kill_on_drop: false }` [INFO] [stdout] cf0e6b4ac5df0664e41bf29be6d66dc5321c4446412ea34d58b289bcd0bc8e6f