[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#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbahelms%2Ftrader" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bahelms/trader on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-3/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ureq v1.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88c445ddd7cb92419350730b9bcda369cbddd8a0d82f7620f823851e7bcc20f0 [INFO] running `Command { std: "docker" "start" "-a" "88c445ddd7cb92419350730b9bcda369cbddd8a0d82f7620f823851e7bcc20f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88c445ddd7cb92419350730b9bcda369cbddd8a0d82f7620f823851e7bcc20f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88c445ddd7cb92419350730b9bcda369cbddd8a0d82f7620f823851e7bcc20f0", kill_on_drop: false }` [INFO] [stdout] 88c445ddd7cb92419350730b9bcda369cbddd8a0d82f7620f823851e7bcc20f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df6f1de3fe895abae9cad085ca297d4fcad224ba6ca18e9e55c54a80eb861ead [INFO] running `Command { std: "docker" "start" "-a" "df6f1de3fe895abae9cad085ca297d4fcad224ba6ca18e9e55c54a80eb861ead", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling cc v1.0.59 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking chunked_transfer v1.2.0 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling time v0.2.18 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking url v2.1.1 [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] Checking time-macros v0.1.0 [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: 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: 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: 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: 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: `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: 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: 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: 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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 32.38s [INFO] running `Command { std: "docker" "inspect" "df6f1de3fe895abae9cad085ca297d4fcad224ba6ca18e9e55c54a80eb861ead", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df6f1de3fe895abae9cad085ca297d4fcad224ba6ca18e9e55c54a80eb861ead", kill_on_drop: false }` [INFO] [stdout] df6f1de3fe895abae9cad085ca297d4fcad224ba6ca18e9e55c54a80eb861ead